Click here to Skip to main content
15,903,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: typedef tweak Pin
Mark Salsbery21-Nov-07 6:57
Mark Salsbery21-Nov-07 6:57 
AnswerRe: typedef tweak Pin
Nathan Holt at EMOM21-Nov-07 10:49
Nathan Holt at EMOM21-Nov-07 10:49 
GeneralRe: typedef tweak Pin
LiYS21-Nov-07 17:41
LiYS21-Nov-07 17:41 
QuestionDoes it take much time to do such a user interface? Pin
followait21-Nov-07 4:24
followait21-Nov-07 4:24 
AnswerRe: Does it take much time to do such a user interface? Pin
led mike21-Nov-07 4:35
led mike21-Nov-07 4:35 
GeneralRe: Does it take much time to do such a user interface? Pin
followait21-Nov-07 4:38
followait21-Nov-07 4:38 
GeneralRe: Does it take much time to do such a user interface? Pin
toxcct21-Nov-07 4:45
toxcct21-Nov-07 4:45 
JokeRe: Does it take much time to do such a user interface? Pin
Cedric Moonen21-Nov-07 4:47
Cedric Moonen21-Nov-07 4:47 
GeneralRe: Does it take much time to do such a user interface? Pin
followait21-Nov-07 15:40
followait21-Nov-07 15:40 

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.