Click here to Skip to main content
15,920,031 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Function Enquiry Pin
Programm3r3-Apr-07 2:05
Programm3r3-Apr-07 2:05 
QuestionGDI+ & MFC - Resizing problem Pin
FreeCastle2-Apr-07 23:54
FreeCastle2-Apr-07 23:54 
AnswerRe: GDI+ & MFC - Resizing problem Pin
Parthi_Appu2-Apr-07 23:59
Parthi_Appu2-Apr-07 23:59 
GeneralRe: GDI+ & MFC - Resizing problem Pin
FreeCastle3-Apr-07 1:01
FreeCastle3-Apr-07 1:01 
GeneralRe: GDI+ & MFC - Resizing problem Pin
Parthi_Appu3-Apr-07 1:15
Parthi_Appu3-Apr-07 1:15 
GeneralRe: GDI+ & MFC - Resizing problem Pin
FreeCastle3-Apr-07 2:01
FreeCastle3-Apr-07 2:01 
GeneralRe: GDI+ & MFC - Resizing problem Pin
Parthi_Appu3-Apr-07 2:16
Parthi_Appu3-Apr-07 2:16 
GeneralRe: GDI+ & MFC - Resizing problem Pin
FreeCastle3-Apr-07 3:17
FreeCastle3-Apr-07 3:17 
Ahhh thank you, that works. But anyway I have to put an Invalidate() into the OnSize handler, because without that I see the changes only after hiding and showing again the dialog.

I don't really understand why this has to be done by a HDC, but the main thing is that it works. But there is one question open to me. In my "real" application I also do some transformations on the Graphics object (you know, for e.g. having a real local coordinate system and so on). Actually those transformations have only to be done when the dialog is showed the first time, and each time when the dialog is resized. But with that solution I also would have to make those transformations each time I draw my graphical objects. I don't really know, but I think this slows the performance a little bit down (and performance is important to me in this app). So is there a way to just recreate the Graphics object when the windows is resized (so that I don't have to perform all the time those transformations)?

Anyway... thank you a lot!!
GeneralRe: GDI+ & MFC - Resizing problem Pin
Mark Salsbery3-Apr-07 8:19
Mark Salsbery3-Apr-07 8:19 
QuestionCircle Equation Pin
faridah_hani2-Apr-07 23:24
faridah_hani2-Apr-07 23:24 
AnswerRe: Circle Equation Pin
_AnsHUMAN_ 2-Apr-07 23:43
_AnsHUMAN_ 2-Apr-07 23:43 
QuestionRe: Circle Equation Pin
David Crow3-Apr-07 2:56
David Crow3-Apr-07 2:56 
AnswerRe: Circle Equation Pin
Hamid_RT3-Apr-07 6:18
Hamid_RT3-Apr-07 6:18 
Questionwindows recycle bin Pin
apoluo2-Apr-07 23:14
apoluo2-Apr-07 23:14 
AnswerRe: windows recycle bin Pin
Parthi_Appu3-Apr-07 0:07
Parthi_Appu3-Apr-07 0:07 
GeneralRe: windows recycle bin Pin
apoluo3-Apr-07 4:42
apoluo3-Apr-07 4:42 
GeneralRe: windows recycle bin Pin
apoluo3-Apr-07 4:44
apoluo3-Apr-07 4:44 
AnswerRe: windows recycle bin Pin
Hamid_RT3-Apr-07 6:18
Hamid_RT3-Apr-07 6:18 
Questionlinker problem VS2005 and lua library Pin
abac_mefisto2-Apr-07 22:58
abac_mefisto2-Apr-07 22:58 
GeneralRe: linker problem VS2005 and lua library Pin
prasad_som3-Apr-07 1:53
prasad_som3-Apr-07 1:53 
QuestionRe: linker problem VS2005 and lua library Pin
abac_mefisto3-Apr-07 2:19
abac_mefisto3-Apr-07 2:19 
AnswerRe: linker problem VS2005 and lua library Pin
prasad_som3-Apr-07 2:33
prasad_som3-Apr-07 2:33 
GeneralRe: linker problem VS2005 and lua library Pin
abac_mefisto3-Apr-07 2:23
abac_mefisto3-Apr-07 2:23 
QuestionHow to paint background of a CWnd derived class? Pin
narayanagvs2-Apr-07 22:56
narayanagvs2-Apr-07 22:56 
QuestionRe: How to paint background of a CWnd derived class? Pin
prasad_som3-Apr-07 0:12
prasad_som3-Apr-07 0:12 

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.