Click here to Skip to main content
15,913,213 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help de-activating system menu in window Pin
Sir Gras of Berger28-Mar-01 9:30
Sir Gras of Berger28-Mar-01 9:30 
GeneralRe: Help de-activating system menu in window Pin
Peter Sjöström28-Mar-01 21:32
Peter Sjöström28-Mar-01 21:32 
GeneralHelp de-activating system menu in window Pin
Peter Sjöström28-Mar-01 6:48
Peter Sjöström28-Mar-01 6:48 
QuestionFlickering...? Pin
Manfred Ramosch28-Mar-01 3:45
Manfred Ramosch28-Mar-01 3:45 
AnswerRe: Flickering...? Pin
Chris Losinger28-Mar-01 8:17
professionalChris Losinger28-Mar-01 8:17 
AnswerRe: Flickering...? Pin
Erik Funkenbusch28-Mar-01 12:42
Erik Funkenbusch28-Mar-01 12:42 
GeneralRe: Flickering...? Pin
Manfred Ramosch29-Mar-01 2:31
Manfred Ramosch29-Mar-01 2:31 
GeneralRe: Flickering...? Pin
Christian Graus29-Mar-01 3:01
protectorChristian Graus29-Mar-01 3:01 
1/ You should use CPaintDC because CCLientDC is for getting a DC outside CPaintDC. I know you should never call CPaintDC outside OnPaint, but I admit you'll have to look elsewhere for a definitive answer as to why the reverse is true.

2/ Correct. Also true for bitmaps, but if you only select one bitmap into a DC, you'll never notice.

3/ Also correct.

4&5/ No. They are classes and have destructors. The CDC destructor cannot destory a pen it does not have, but if the DC is deleted in it's originla state, the destructors will do the rest.

6/ The GDI stuff is a thin wrapper on Win32 functions, and so it has not changed much. Although try writing this stuff in Win32 where you DO have to delete everything and it gets a bit harder.


Christian

The content of this post is not necessarily the opinion of my yadda yadda yadda.

To understand recursion, we must first understand recursion.
GeneralRe: Flickering...? Pin
Erik Funkenbusch29-Mar-01 13:23
Erik Funkenbusch29-Mar-01 13:23 
AnswerRe: Flickering...? Pin
Christian Graus28-Mar-01 12:53
protectorChristian Graus28-Mar-01 12:53 
GeneralRe: Flickering...? Pin
Manfred Ramosch29-Mar-01 2:54
Manfred Ramosch29-Mar-01 2:54 
GeneralRe: Flickering...? Pin
Christian Graus29-Mar-01 3:06
protectorChristian Graus29-Mar-01 3:06 
GeneralRe: Flickering...? Pin
Manfred Ramosch29-Mar-01 3:54
Manfred Ramosch29-Mar-01 3:54 
GeneralRe: Flickering...? Pin
Christian Graus29-Mar-01 10:26
protectorChristian Graus29-Mar-01 10:26 
QuestionHow do I completely evict help from my project ? Pin
Christian Graus27-Mar-01 15:34
protectorChristian Graus27-Mar-01 15:34 
AnswerRe: How do I completely evict help from my project ? Pin
l a u r e n27-Mar-01 19:09
l a u r e n27-Mar-01 19:09 
GeneralRe: How do I completely evict help from my project ? Pin
Christian Graus27-Mar-01 19:14
protectorChristian Graus27-Mar-01 19:14 
GeneralRe: How do I completely evict help from my project ? Pin
l a u r e n27-Mar-01 20:06
l a u r e n27-Mar-01 20:06 
GeneralRe: How do I completely evict help from my project ? Pin
28-Mar-01 7:07
suss28-Mar-01 7:07 
AnswerRe: How do I completely evict help from my project ? Pin
Tim Deveaux28-Mar-01 4:04
Tim Deveaux28-Mar-01 4:04 
QuestionIs this likely to be a bug? Pin
Doug27-Mar-01 15:18
Doug27-Mar-01 15:18 
AnswerRe: Is this likely to be a bug? Pin
Michael Dunn27-Mar-01 16:54
sitebuilderMichael Dunn27-Mar-01 16:54 
GeneralHere's a weird VC++ problem I ran into... Pin
Matt Philmon27-Mar-01 9:03
Matt Philmon27-Mar-01 9:03 
GeneralRe: Here's a weird VC++ problem I ran into... Pin
Christian Graus27-Mar-01 11:51
protectorChristian Graus27-Mar-01 11:51 
GeneralRe: Here's a weird VC++ problem I ran into... Pin
Kannan Kalyanaraman27-Mar-01 19:35
Kannan Kalyanaraman27-Mar-01 19:35 

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.