Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Compiler Error ??? Pin
Richard MacCutchan10-Jan-12 11:59
mveRichard MacCutchan10-Jan-12 11:59 
GeneralRe: Compiler Error ??? Pin
CPallini10-Jan-12 21:32
mveCPallini10-Jan-12 21:32 
AnswerRe: Compiler Error ??? Pin
Mohibur Rashid10-Jan-12 14:15
professionalMohibur Rashid10-Jan-12 14:15 
GeneralRe: Compiler Error ??? Pin
Stefan_Lang12-Jan-12 1:23
Stefan_Lang12-Jan-12 1:23 
AnswerRe: Compiler Error ??? Pin
Eytukan11-Jan-12 0:37
Eytukan11-Jan-12 0:37 
Question.ani picture or animation control Pin
Chris Geddes10-Jan-12 1:45
Chris Geddes10-Jan-12 1:45 
QuestionRe: .ani picture or animation control Pin
Richard MacCutchan10-Jan-12 2:33
mveRichard MacCutchan10-Jan-12 2:33 
AnswerRe: .ani picture or animation control Pin
Albert Holguin10-Jan-12 3:44
professionalAlbert Holguin10-Jan-12 3:44 
GeneralRe: .ani picture or animation control Pin
Chris Geddes11-Jan-12 1:00
Chris Geddes11-Jan-12 1:00 
QuestionEmbedding a CDialog in a CMFCOutlookbar Pin
UrbanBlues9-Jan-12 11:16
UrbanBlues9-Jan-12 11:16 
AnswerRe: Embedding a CDialog in a CMFCOutlookbar Pin
«_Superman_»9-Jan-12 14:40
professional«_Superman_»9-Jan-12 14:40 
GeneralRe: Embedding a CDialog in a CMFCOutlookbar Pin
UrbanBlues10-Jan-12 7:01
UrbanBlues10-Jan-12 7:01 
QuestionProblem with resizing window Pin
blackbolek9-Jan-12 4:45
blackbolek9-Jan-12 4:45 
QuestionRe: Problem with resizing window Pin
Albert Holguin9-Jan-12 4:58
professionalAlbert Holguin9-Jan-12 4:58 
AnswerRe: Problem with resizing window Pin
blackbolek9-Jan-12 10:01
blackbolek9-Jan-12 10:01 
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 

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.