Click here to Skip to main content
15,887,464 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Worker thread->crash Pin
ThatsAlok10-Mar-08 20:36
ThatsAlok10-Mar-08 20:36 
QuestionRe: Worker thread->crash Pin
Maxwell Chen10-Mar-08 20:45
Maxwell Chen10-Mar-08 20:45 
GeneralRe: Worker thread->crash Pin
CPallini10-Mar-08 22:39
mveCPallini10-Mar-08 22:39 
GeneralRe: Worker thread->crash Pin
kanduripavan11-Mar-08 16:57
kanduripavan11-Mar-08 16:57 
Generalprogram to convert roman number to its decimal equvalent Pin
Dhiraj kumar Saini10-Mar-08 17:05
Dhiraj kumar Saini10-Mar-08 17:05 
GeneralRe: program to convert roman number to its decimal equvalent Pin
Stephen Hewitt10-Mar-08 18:02
Stephen Hewitt10-Mar-08 18:02 
GeneralInitialization of Dialog Controls Pin
jonsey2984710-Mar-08 13:33
jonsey2984710-Mar-08 13:33 
GeneralRe: Initialization of Dialog Controls Pin
Mark Salsbery10-Mar-08 13:47
Mark Salsbery10-Mar-08 13:47 
Drawing in response to WM_INITDIALOG will be useless since the dialog is not displayed yet at that point.

Drawing in response to WM_PAINT is always necessary if you want the window to be redrawn when it's needed,
like when a user resizes the window or moves another window off the top of your window.

If you are drawing on a control, then you should be drawing when the control window needs to be painted
(when it receives WM_PAINT), not when the dialog needs to be painted.  The dialog will paint before the child
controls since it's lower in the z-order.

You can subclass the static control and do its WM_ERASEBKGND and WM_PAINT andling yourself.
You should see much nicer results.

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Initialization of Dialog Controls Pin
Stephen Hewitt10-Mar-08 15:07
Stephen Hewitt10-Mar-08 15:07 
GeneralRe: Initialization of Dialog Controls Pin
jonsey2984710-Mar-08 18:10
jonsey2984710-Mar-08 18:10 
GeneralRe: Initialization of Dialog Controls Pin
Maxwell Chen10-Mar-08 19:05
Maxwell Chen10-Mar-08 19:05 
GeneralRe: Initialization of Dialog Controls Pin
jonsey2984710-Mar-08 23:38
jonsey2984710-Mar-08 23:38 
QuestionDLL compatibility with VS 2005 and VS 6.0 Pin
akiraps10-Mar-08 11:57
akiraps10-Mar-08 11:57 
GeneralRe: DLL compatibility with VS 2005 and VS 6.0 Pin
Mark Salsbery10-Mar-08 12:29
Mark Salsbery10-Mar-08 12:29 
QuestionVisual C++ Prerequisites Pin
nike_arh10-Mar-08 8:33
nike_arh10-Mar-08 8:33 
GeneralRe: Visual C++ Prerequisites [modified] Pin
led mike10-Mar-08 8:46
led mike10-Mar-08 8:46 
GeneralRe: Visual C++ Prerequisites Pin
nike_arh10-Mar-08 8:50
nike_arh10-Mar-08 8:50 
GeneralRe: Visual C++ Prerequisites Pin
David Crow10-Mar-08 8:51
David Crow10-Mar-08 8:51 
GeneralRe: Visual C++ Prerequisites Pin
David Crow10-Mar-08 8:50
David Crow10-Mar-08 8:50 
GeneralRe: Visual C++ Prerequisites Pin
nike_arh10-Mar-08 8:54
nike_arh10-Mar-08 8:54 
GeneralRe: Visual C++ Prerequisites Pin
led mike10-Mar-08 9:04
led mike10-Mar-08 9:04 
GeneralRe: Visual C++ Prerequisites Pin
David Crow10-Mar-08 10:09
David Crow10-Mar-08 10:09 
GeneralRe: Visual C++ Prerequisites [modified] Pin
Maxwell Chen10-Mar-08 8:51
Maxwell Chen10-Mar-08 8:51 
GeneralRe: Visual C++ Prerequisites Pin
led mike10-Mar-08 8:56
led mike10-Mar-08 8:56 
GeneralRe: Visual C++ Prerequisites Pin
Maxwell Chen10-Mar-08 8:58
Maxwell Chen10-Mar-08 8:58 

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.