Click here to Skip to main content
15,888,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem with resizing window Pin
Albert Holguin9-Jan-12 10:18
professionalAlbert Holguin9-Jan-12 10:18 
GeneralRe: Problem with resizing window Pin
blackbolek9-Jan-12 22:01
blackbolek9-Jan-12 22:01 
GeneralRe: Problem with resizing window Pin
Albert Holguin10-Jan-12 3:27
professionalAlbert Holguin10-Jan-12 3:27 
GeneralRe: Problem with resizing window Pin
blackbolek9-Jan-12 23:30
blackbolek9-Jan-12 23:30 
GeneralRe: Problem with resizing window Pin
Richard MacCutchan10-Jan-12 2:31
mveRichard MacCutchan10-Jan-12 2:31 
GeneralRe: Problem with resizing window Pin
Albert Holguin10-Jan-12 3:29
professionalAlbert Holguin10-Jan-12 3:29 
GeneralRe: Problem with resizing window Pin
blackbolek10-Jan-12 20:52
blackbolek10-Jan-12 20:52 
GeneralRe: Problem with resizing window Pin
Albert Holguin11-Jan-12 7:55
professionalAlbert Holguin11-Jan-12 7:55 
You don't need to delete it, you just can't hold it up, it's not hooked to the window directly, but your application won't be able to attach to the drawing context twice (it will eventually fail, as you've found out). You also should be drawing on your InitDialog() (this is for initializing controls really), that's not the proper place for that.

Any drawing should occur on OnPaint(), alternatively, no resizing should occur within OnPaint() (can't think of any legitimate reason to do so). Reason to keep all drawing in OnPaint()... that's the method the framework will call every time the framework determines your window needs to be redrawn, for whatever reason, anything from a resize to a window getting placed over your window then removed, etc, will trigger a call to OnPaint().
AnswerRe: Problem with resizing window Pin
Richard MacCutchan9-Jan-12 5:50
mveRichard MacCutchan9-Jan-12 5:50 
GeneralRe: Problem with resizing window Pin
Albert Holguin9-Jan-12 7:26
professionalAlbert Holguin9-Jan-12 7:26 
GeneralRe: Problem with resizing window Pin
blackbolek9-Jan-12 10:14
blackbolek9-Jan-12 10:14 
AnswerRe: Problem with resizing window Pin
Luc Pattyn9-Jan-12 11:07
sitebuilderLuc Pattyn9-Jan-12 11:07 
GeneralRe: Problem with resizing window Pin
Richard MacCutchan9-Jan-12 21:19
mveRichard MacCutchan9-Jan-12 21:19 
QuestionTop level menu - Message on losing focus Pin
RavishB9-Jan-12 3:22
RavishB9-Jan-12 3:22 
AnswerRe: Top level menu - Message on losing focus Pin
Code-o-mat9-Jan-12 6:14
Code-o-mat9-Jan-12 6:14 
QuestionLog event message Pin
_Flaviu8-Jan-12 22:58
_Flaviu8-Jan-12 22:58 
AnswerRe: Log event message Pin
Chandrasekharan P8-Jan-12 23:38
Chandrasekharan P8-Jan-12 23:38 
QuestionWinSNMP Pin
msr_codeproject8-Jan-12 19:40
msr_codeproject8-Jan-12 19:40 
AnswerRe: WinSNMP Pin
Richard MacCutchan8-Jan-12 22:55
mveRichard MacCutchan8-Jan-12 22:55 
AnswerRe: WinSNMP Pin
S p k 5219-Jan-12 19:16
S p k 5219-Jan-12 19:16 
QuestionCalling via TAPI Pin
Hadi Dayvary7-Jan-12 4:03
professionalHadi Dayvary7-Jan-12 4:03 
Question#pragma data_seg issue - Sharing only works with multiple instances of the same EXE Pin
bcb_guy6-Jan-12 21:00
bcb_guy6-Jan-12 21:00 
AnswerRe: #pragma data_seg issue - Sharing only works with multiple instances of the same EXE Pin
bcb_guy7-Jan-12 10:37
bcb_guy7-Jan-12 10:37 
QuestionDLL global variable question - VC++ 2010 Express - unable to set Pin
bcb_guy6-Jan-12 15:17
bcb_guy6-Jan-12 15:17 
AnswerRe: DLL global variable question - VC++ 2010 Express - unable to set Pin
«_Superman_»6-Jan-12 15:56
professional«_Superman_»6-Jan-12 15:56 

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.