Click here to Skip to main content
16,011,680 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFile and CArchive ... Pin
Erik Funkenbusch15-Mar-01 11:45
Erik Funkenbusch15-Mar-01 11:45 
GeneralRules ... Pin
Hadi Rezaee14-Mar-01 20:34
Hadi Rezaee14-Mar-01 20:34 
GeneralRe: Rules ... Pin
Christian Graus14-Mar-01 22:15
protectorChristian Graus14-Mar-01 22:15 
GeneralAllocate memory ... Pin
Hadi Rezaee14-Mar-01 20:33
Hadi Rezaee14-Mar-01 20:33 
GeneralRe: Allocate memory ... Pin
Christian Graus14-Mar-01 22:31
protectorChristian Graus14-Mar-01 22:31 
GeneralRe: Allocate memory ... Pin
Hadi Rezaee16-Mar-01 19:28
Hadi Rezaee16-Mar-01 19:28 
GeneralChange color problem ... Pin
Hadi Rezaee14-Mar-01 20:29
Hadi Rezaee14-Mar-01 20:29 
GeneralRe: Change color problem ... Pin
Christian Graus14-Mar-01 22:20
protectorChristian Graus14-Mar-01 22:20 
The problem you have is that the window has changed it's property, but has not been redrawn. Any CWnd derived class has a function called Invalidate which tells the window it needs to be redrawn. It takes a BOOL, and if it is true, the control calls OnEraseWnd first, i.e. it will go blank then redraw, causing flicker. So to fix your problem, once you set the colour, go

Invalidate(false);



Christian

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

To understand recursion, we must first understand recursion.
GeneralSome questions about STL ... Pin
Hadi Rezaee14-Mar-01 20:28
Hadi Rezaee14-Mar-01 20:28 
GeneralRe: Some questions about STL ... Pin
Erik Funkenbusch15-Mar-01 11:50
Erik Funkenbusch15-Mar-01 11:50 
GeneralGetting information from a database... Pin
14-Mar-01 17:36
suss14-Mar-01 17:36 
GeneralRe: Getting information from a database... Pin
15-Mar-01 4:45
suss15-Mar-01 4:45 
GeneralObtaining Process info Pin
14-Mar-01 16:45
suss14-Mar-01 16:45 
GeneralRe: Obtaining Process info Pin
James R. Twine15-Mar-01 5:28
James R. Twine15-Mar-01 5:28 
GeneralATL/COM question Pin
Christian Graus14-Mar-01 14:02
protectorChristian Graus14-Mar-01 14:02 
QuestionHow to excute my program when.... Pin
14-Mar-01 14:00
suss14-Mar-01 14:00 
AnswerRe: How to excute my program when.... Pin
Christian Graus14-Mar-01 14:05
protectorChristian Graus14-Mar-01 14:05 
GeneralBitmap Procedure works - but no Bitmap appears on the screen!! Pin
14-Mar-01 8:52
suss14-Mar-01 8:52 
GeneralRe: Bitmap Procedure works - but no Bitmap appears on the screen!! Pin
Christian Graus14-Mar-01 11:40
protectorChristian Graus14-Mar-01 11:40 
General__stdcall and Member Functions Pin
Rhoam14-Mar-01 8:12
Rhoam14-Mar-01 8:12 
GeneralRe: __stdcall and Member Functions Pin
Chris Losinger14-Mar-01 9:04
professionalChris Losinger14-Mar-01 9:04 
GeneralRe: __stdcall and Member Functions Pin
Erik Funkenbusch14-Mar-01 11:47
Erik Funkenbusch14-Mar-01 11:47 
Questiongantt? Pin
bogdan14-Mar-01 7:48
bogdan14-Mar-01 7:48 
AnswerRe: gantt? Pin
David Cunningham14-Mar-01 12:23
cofounderDavid Cunningham14-Mar-01 12:23 
GeneralExport bitmap to RTF file Pin
14-Mar-01 7:33
suss14-Mar-01 7:33 

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.