Click here to Skip to main content
15,919,434 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: struck with OnPaint Pin
manish.patel21-Nov-07 19:38
manish.patel21-Nov-07 19:38 
GeneralRe: struck with OnPaint Pin
Hamid_RT21-Nov-07 20:19
Hamid_RT21-Nov-07 20:19 
GeneralRe: struck with OnPaint Pin
kk.tvm21-Nov-07 22:05
kk.tvm21-Nov-07 22:05 
GeneralRe: struck with OnPaint Pin
Hamid_RT22-Nov-07 0:22
Hamid_RT22-Nov-07 0:22 
GeneralRe: struck with OnPaint Pin
kk.tvm21-Nov-07 22:06
kk.tvm21-Nov-07 22:06 
GeneralRe: struck with OnPaint Pin
Hamid_RT21-Nov-07 19:23
Hamid_RT21-Nov-07 19:23 
QuestionDLL resetting my globals between function calls? Pin
TheGimp21-Nov-07 15:59
TheGimp21-Nov-07 15:59 
AnswerRe: DLL resetting my globals between function calls? Pin
Malli_S21-Nov-07 18:32
Malli_S21-Nov-07 18:32 
QuestionHow to disable toolbar Pin
Max++21-Nov-07 15:34
Max++21-Nov-07 15:34 
AnswerRe: How to disable toolbar Pin
Paresh Chitte21-Nov-07 17:26
Paresh Chitte21-Nov-07 17:26 
QuestionHow to change the property of a modem connection in WINXP?(Problem with RAS) Pin
hizfp21-Nov-07 15:00
hizfp21-Nov-07 15:00 
AnswerRe: How to change the property of a modem connection in WINXP?(Problem with RAS) Pin
hizfp22-Nov-07 16:15
hizfp22-Nov-07 16:15 
QuestionPrint Edit control!!! Pin
Gofur Halmurat21-Nov-07 8:53
Gofur Halmurat21-Nov-07 8:53 
AnswerRe: Print Edit control!!! Pin
bob1697221-Nov-07 9:19
bob1697221-Nov-07 9:19 
AnswerRe: Print Edit control!!! Pin
Hamid_RT21-Nov-07 19:05
Hamid_RT21-Nov-07 19:05 
QuestionWhy do my Controls flicker ? (src incl.) Pin
abiemann21-Nov-07 7:44
abiemann21-Nov-07 7:44 
AnswerRe: Why do my Controls flicker ? (src incl.) Pin
Mark Salsbery21-Nov-07 9:49
Mark Salsbery21-Nov-07 9:49 
The code you posted does nothing to prevent flicker.

I've been through your code and made some modifications to fix the flicker.

Having a picture control behind all the other controls is the problem.
It prevents you from clipping the other controls to prevent flicker.

I added the WS_CLIPCHILDREN style to the dialog, deleted the picture control from
the dialog's resource, and instead draw the bitmap to the window in response to WM_ERASEBKGND.
This way, Windows automagically clips all the child controls, so you don't have to redraw them on every
timer event.

Shoot me an email here and I'll send the changes in a reply.

BTW, the code leaks GDI resources on every timer event Smile | :)
I didn't look for those leaks.

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionProject cache file of 42meg - deleting/denying Pin
syscwl21-Nov-07 4:41
syscwl21-Nov-07 4:41 
Generaltypedef tweak Pin
LiYS21-Nov-07 4:28
LiYS21-Nov-07 4:28 
GeneralRe: typedef tweak Pin
led mike21-Nov-07 4:40
led mike21-Nov-07 4:40 
GeneralRe: typedef tweak Pin
jhwurmbach21-Nov-07 6:15
jhwurmbach21-Nov-07 6:15 
GeneralRe: typedef tweak Pin
led mike21-Nov-07 6:33
led mike21-Nov-07 6:33 
GeneralRe: typedef tweak Pin
jhwurmbach21-Nov-07 6:37
jhwurmbach21-Nov-07 6:37 
GeneralRe: typedef tweak Pin
Mark Salsbery21-Nov-07 7:00
Mark Salsbery21-Nov-07 7:00 
GeneralRe: typedef tweak Pin
led mike21-Nov-07 9:01
led mike21-Nov-07 9:01 

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.