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

C / C++ / MFC

 
GeneralRe: Looking for Algorithm to match RGB values Pin
Christian Graus22-Mar-01 11:46
protectorChristian Graus22-Mar-01 11:46 
GeneralPlease help save my sanity... Pin
21-Mar-01 10:16
suss21-Mar-01 10:16 
GeneralRe: Please help save my sanity... Pin
Michael Dunn21-Mar-01 16:52
sitebuilderMichael Dunn21-Mar-01 16:52 
GeneralReplacing ComboBox arrow-button Pin
21-Mar-01 9:41
suss21-Mar-01 9:41 
GeneralHelp me Please! Bitmap UI probs Pin
21-Mar-01 8:36
suss21-Mar-01 8:36 
GeneralRe: Help me Please! Bitmap UI probs Pin
Chris Losinger21-Mar-01 9:29
professionalChris Losinger21-Mar-01 9:29 
GeneralRe: Help me Please! Bitmap UI probs Pin
21-Mar-01 9:52
suss21-Mar-01 9:52 
GeneralRe: Help me Please! Bitmap UI probs Pin
Chris Losinger21-Mar-01 11:26
professionalChris Losinger21-Mar-01 11:26 
one reason to call Invalidate instead of OnPaint is that there is a very good chance that there may be things that have to happen before OnPaint is called that Invalidate takes care of. so, Invalidate will do some setup, then call your OnPaint when it's ready (in effect). and, yes you should always call the base class OnPaint - so that the buttons can draw themselves, too.

another reason for not calling OnPaint directly is that painting is supposed to be asynchronous - the UI updates when it gets a chance, not when you decide it should.

overriding OnEraseBackground will take care of the background issue for you.

-c

------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
GeneralRe: Help me Please! Bitmap UI probs Pin
Michael Dunn21-Mar-01 16:58
sitebuilderMichael Dunn21-Mar-01 16:58 
GeneralRe: Help me Please! Bitmap UI probs Pin
22-Mar-01 12:03
suss22-Mar-01 12:03 
GeneralRe: Help me Please! Bitmap UI probs Pin
23-Mar-01 9:14
suss23-Mar-01 9:14 
QuestionHow to turn status bar, menu bar, tool bar, title bar off? Pin
Richard Cheng21-Mar-01 6:23
Richard Cheng21-Mar-01 6:23 
GeneralAccelerator Pin
confalonieri21-Mar-01 3:57
confalonieri21-Mar-01 3:57 
QuestionCComboBox - how to react to enter i editbox? Pin
21-Mar-01 2:19
suss21-Mar-01 2:19 
AnswerRe: CComboBox - how to react to enter i editbox? Pin
PJ Arends22-Mar-01 6:22
professionalPJ Arends22-Mar-01 6:22 
QuestionDundas Ultimate Grid -- enhanced Version? Pin
Uwe Keim20-Mar-01 19:21
sitebuilderUwe Keim20-Mar-01 19:21 
AnswerRe: Dundas Ultimate Grid -- enhanced Version? Pin
Holger Persch20-Mar-01 19:48
Holger Persch20-Mar-01 19:48 
GeneralWeb Accessories Pin
Marcelo Nogueira Magri20-Mar-01 14:50
Marcelo Nogueira Magri20-Mar-01 14:50 
GeneralRe: Web Accessories Pin
Erik Thompson21-Mar-01 7:48
sitebuilderErik Thompson21-Mar-01 7:48 
GeneralSetWindowsHookEx Pin
Conor Hunt20-Mar-01 10:38
Conor Hunt20-Mar-01 10:38 
GeneralRe: SetWindowsHookEx Pin
Michael Dunn20-Mar-01 18:04
sitebuilderMichael Dunn20-Mar-01 18:04 
Generaldialogbox Pin
20-Mar-01 8:23
suss20-Mar-01 8:23 
GeneralRe: dialogbox Pin
Christian Graus20-Mar-01 11:53
protectorChristian Graus20-Mar-01 11:53 
GeneralGraphic Question Pin
Richard Cheng20-Mar-01 6:33
Richard Cheng20-Mar-01 6:33 
GeneralRe: Graphic Question Pin
Tim Deveaux20-Mar-01 7:36
Tim Deveaux20-Mar-01 7:36 

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.