Click here to Skip to main content
15,907,225 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to replace a CDC of another CWnd Pin
Iain Clarke, Warrior Programmer1-Aug-07 23:52
Iain Clarke, Warrior Programmer1-Aug-07 23:52 
GeneralRe: How to replace a CDC of another CWnd Pin
FlyingBear2-Aug-07 0:41
FlyingBear2-Aug-07 0:41 
GeneralRe: How to replace a CDC of another CWnd Pin
Iain Clarke, Warrior Programmer2-Aug-07 1:16
Iain Clarke, Warrior Programmer2-Aug-07 1:16 
GeneralRe: How to replace a CDC of another CWnd Pin
FlyingBear2-Aug-07 2:30
FlyingBear2-Aug-07 2:30 
GeneralRe: How to replace a CDC of another CWnd Pin
Hamid_RT2-Aug-07 2:47
Hamid_RT2-Aug-07 2:47 
GeneralRe: How to replace a CDC of another CWnd Pin
FlyingBear2-Aug-07 3:57
FlyingBear2-Aug-07 3:57 
GeneralRe: How to replace a CDC of another CWnd Pin
Hamid_RT2-Aug-07 5:09
Hamid_RT2-Aug-07 5:09 
AnswerRe: How to replace a CDC of another CWnd Pin
Iain Clarke, Warrior Programmer1-Aug-07 23:23
Iain Clarke, Warrior Programmer1-Aug-07 23:23 
hDC = ::GetDC (hWnd);
// do your thing!
::ReleaseDC (hWnd, hDC);


Sometimes its simpler that you think!


You should also have a peek at WM_PRINT, as it asks the other window to draw itself nicely in a DC you provide.

Iain.



GeneralRe: How to replace a CDC of another CWnd Pin
FlyingBear2-Aug-07 0:25
FlyingBear2-Aug-07 0:25 
QuestionRe: How to replace a CDC of another CWnd Pin
Mark Salsbery2-Aug-07 9:27
Mark Salsbery2-Aug-07 9:27 
AnswerRe: How to replace a CDC of another CWnd Pin
Michael Dunn2-Aug-07 8:18
sitebuilderMichael Dunn2-Aug-07 8:18 
GeneralRe: How to replace a CDC of another CWnd Pin
FlyingBear2-Aug-07 8:53
FlyingBear2-Aug-07 8:53 
AnswerRe: How to replace a CDC of another CWnd Pin
FlyingBear2-Aug-07 19:21
FlyingBear2-Aug-07 19:21 
QuestionEnable C++ Exceptions Pin
Tal S.1-Aug-07 22:37
Tal S.1-Aug-07 22:37 
AnswerRe: Enable C++ Exceptions Pin
Russell'2-Aug-07 2:35
Russell'2-Aug-07 2:35 
QuestionRunning 10 threads at a time Pin
neha.agarwal271-Aug-07 22:22
neha.agarwal271-Aug-07 22:22 
AnswerRe: Running 10 threads at a time Pin
Iain Clarke, Warrior Programmer1-Aug-07 22:48
Iain Clarke, Warrior Programmer1-Aug-07 22:48 
AnswerRe: Running 10 threads at a time Pin
Iain Clarke, Warrior Programmer1-Aug-07 22:52
Iain Clarke, Warrior Programmer1-Aug-07 22:52 
AnswerRe: Running 10 threads at a time Pin
Russell'1-Aug-07 22:57
Russell'1-Aug-07 22:57 
GeneralRe: Running 10 threads at a time Pin
neha.agarwal272-Aug-07 2:09
neha.agarwal272-Aug-07 2:09 
GeneralRe: Running 10 threads at a time Pin
Russell'2-Aug-07 2:27
Russell'2-Aug-07 2:27 
GeneralRe: Running 10 threads at a time Pin
Mark Salsbery2-Aug-07 8:31
Mark Salsbery2-Aug-07 8:31 
QuestionWM_INITDIALOG in VS 2005 Pin
vipin_nvk1-Aug-07 22:20
vipin_nvk1-Aug-07 22:20 
AnswerRe: WM_INITDIALOG in VS 2005 Pin
Anurag Gandhi1-Aug-07 22:51
professionalAnurag Gandhi1-Aug-07 22:51 
AnswerRe: WM_INITDIALOG in VS 2005 Pin
KarstenK1-Aug-07 23:49
mveKarstenK1-Aug-07 23:49 

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.