Click here to Skip to main content
15,892,643 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAdding new font Pin
Semion_N10-Jul-06 22:18
Semion_N10-Jul-06 22:18 
AnswerRe: Adding new font Pin
Monty210-Jul-06 22:27
Monty210-Jul-06 22:27 
GeneralRe: Adding new font Pin
Semion_N11-Jul-06 3:34
Semion_N11-Jul-06 3:34 
QuestionPrinting Document Pin
Ganesh_T10-Jul-06 21:52
Ganesh_T10-Jul-06 21:52 
AnswerRe: Printing Document Pin
Hamid_RT10-Jul-06 22:03
Hamid_RT10-Jul-06 22:03 
GeneralRe: Printing Document Pin
Ganesh_T10-Jul-06 22:39
Ganesh_T10-Jul-06 22:39 
GeneralRe: Printing Document Pin
Hamid_RT11-Jul-06 0:28
Hamid_RT11-Jul-06 0:28 
GeneralRe: Printing Document Pin
Ganesh_T11-Jul-06 1:04
Ganesh_T11-Jul-06 1:04 
I have the ellipse created on WM_PAINT.

case WM_PAINT:
hdc = BeginPaint(hWnd, &ps);

// TODO: Add any drawing code here...
::Ellipse(hdc,100,100,500,500);
RECT rect;
rect.left = 200;
rect.top = 200;
rect.right = 400;
rect.bottom = 400;
::DrawText(hdc,_T("I am the best"),(int)strlen(_T("I am the best")),&rect,DT_CENTER);

EndPaint(hWnd, &ps);
break;


and on the menu click:
case IDM_MENU1:
hClientDC = GetDC(hWnd);
PrintSelected(hWnd,hClientDC);
break;


I don't want directly to draw ont print dc. First I want to take the handel of my Client DC such taht whatever is drawn on the client are shouldbe printed on page

"A winner is not one who never fails...but the one who never quits"
AnswerRe: Printing Document Pin
Monty210-Jul-06 22:33
Monty210-Jul-06 22:33 
GeneralRe: Printing Document [modified] Pin
Ganesh_T10-Jul-06 22:40
Ganesh_T10-Jul-06 22:40 
GeneralRe: Printing Document Pin
Monty210-Jul-06 22:55
Monty210-Jul-06 22:55 
Questiondetecting frame change in video Pin
Ram Murali10-Jul-06 21:46
Ram Murali10-Jul-06 21:46 
QuestionCTreeCtrl question Pin
zeus_master10-Jul-06 21:45
zeus_master10-Jul-06 21:45 
AnswerRe: CTreeCtrl question Pin
Hamid_RT10-Jul-06 21:47
Hamid_RT10-Jul-06 21:47 
AnswerRe: CTreeCtrl question Pin
Abhi Lahare10-Jul-06 21:52
Abhi Lahare10-Jul-06 21:52 
GeneralRe: CTreeCtrl question Pin
zeus_master10-Jul-06 22:07
zeus_master10-Jul-06 22:07 
QuestionProblem related to onPaint() Pin
LakshmiPathiRao10-Jul-06 21:33
LakshmiPathiRao10-Jul-06 21:33 
AnswerRe: Problem related to onPaint() Pin
Parthi_Appu10-Jul-06 21:41
Parthi_Appu10-Jul-06 21:41 
QuestionMFC Commandline.... Pin
Phil.Benson10-Jul-06 21:29
professionalPhil.Benson10-Jul-06 21:29 
AnswerRe: MFC Commandline.... Pin
Abhi Lahare10-Jul-06 21:47
Abhi Lahare10-Jul-06 21:47 
AnswerRe: MFC Commandline.... Pin
Monty210-Jul-06 22:20
Monty210-Jul-06 22:20 
GeneralRe: MFC Commandline.... Pin
Phil.Benson10-Jul-06 22:28
professionalPhil.Benson10-Jul-06 22:28 
QuestionIP ADRESS Pin
ashish dogra10-Jul-06 21:06
ashish dogra10-Jul-06 21:06 
AnswerRe: IP ADRESS Pin
Abhi Lahare10-Jul-06 21:12
Abhi Lahare10-Jul-06 21:12 
GeneralRe: IP ADRESS Pin
ashish dogra10-Jul-06 21:17
ashish dogra10-Jul-06 21:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.