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

C / C++ / MFC

 
GeneralRe: Dialog Bar Pin
Yuri Kreinin12-Mar-03 11:02
Yuri Kreinin12-Mar-03 11:02 
GeneralDirectplay voice echo problem Pin
chengnan12-Mar-03 9:36
chengnan12-Mar-03 9:36 
QuestionDetect DirectX version? Pin
dandy7212-Mar-03 8:00
dandy7212-Mar-03 8:00 
AnswerRe: Detect DirectX version? Pin
Dominik Reichl12-Mar-03 8:40
Dominik Reichl12-Mar-03 8:40 
GeneralRe: Detect DirectX version? Pin
dandy7213-Mar-03 3:36
dandy7213-Mar-03 3:36 
GeneralProblem working with DLL: Main APP.EXE without some features Pin
Cris12-Mar-03 7:57
Cris12-Mar-03 7:57 
GeneralRe: Problem working with DLL: Main APP.EXE without some features Pin
Yuri Kreinin12-Mar-03 10:14
Yuri Kreinin12-Mar-03 10:14 
GeneralPainting Controls Question. Pin
Maximilien12-Mar-03 7:52
Maximilien12-Mar-03 7:52 
(using MFC)

Good day,

I have a bad case of flickering when repainting controls (CEdit).

I have a complex component that includes a couple of CEdit and some CButton, enclosed in a CWnd that paint itself when it gets the focus.

anyway, when the main CWnd gets the focus, I need to change the colors of the CEdit and CButton to indicate the focus state; this works but I get some flickering.

I'm not sure exactly how the WM_ERASEBKGND works, in MSDN, says that it will (or should) erase the background; I've been using the OnEraseBkgnd to paint the background of the control, but how is it different than using the WM_PAINT message ?

I still need to be paint some stuff in the control, so I need the WM_PAINT. can I not use the WM_ERASEBKGND and only use the WM_PAINT ?

I also tried the LockWindowUpdate and UnlockWindowUpdate but that resulted in something less than good.

Thanks.

Max.



Maximilien Lincourt
For success one must aquire one's self
GeneralRe: Painting Controls Question. Pin
Yuri Kreinin12-Mar-03 10:21
Yuri Kreinin12-Mar-03 10:21 
GeneralRe: Painting Controls Question. Pin
Roger Allen13-Mar-03 1:46
Roger Allen13-Mar-03 1:46 
Generalexecuting dos command Pin
Shay Harel12-Mar-03 7:36
Shay Harel12-Mar-03 7:36 
GeneralRe: executing dos command Pin
valikac12-Mar-03 7:58
valikac12-Mar-03 7:58 
GeneralRe: executing dos command Pin
Chris Losinger12-Mar-03 8:19
professionalChris Losinger12-Mar-03 8:19 
GeneralRe: executing dos command Pin
converdb12-Mar-03 8:38
converdb12-Mar-03 8:38 
GeneralRe: executing dos command Pin
TomKat14-Mar-03 15:25
TomKat14-Mar-03 15:25 
GeneralOpenGL question Pin
WhiteLegend12-Mar-03 7:33
WhiteLegend12-Mar-03 7:33 
GeneralRe: OpenGL question Pin
Moak12-Mar-03 12:38
Moak12-Mar-03 12:38 
GeneralRe: OpenGL question Pin
WhiteLegend12-Mar-03 17:09
WhiteLegend12-Mar-03 17:09 
GeneralRe: OpenGL question Pin
Moak12-Mar-03 17:47
Moak12-Mar-03 17:47 
GeneralRe: OpenGL question Pin
WhiteLegend13-Mar-03 4:40
WhiteLegend13-Mar-03 4:40 
GeneralRe: OpenGL question Pin
Moak13-Mar-03 4:53
Moak13-Mar-03 4:53 
GeneralAdding ToolTip Pin
dudic12-Mar-03 7:29
dudic12-Mar-03 7:29 
GeneralRe: Adding ToolTip Pin
TomKat14-Mar-03 15:28
TomKat14-Mar-03 15:28 
GeneralDShow - sampvid.CVideoRenderer Pin
Jakub Misek12-Mar-03 7:25
Jakub Misek12-Mar-03 7:25 
QuestionHow to Input without Breaking the Line, in a console? Pin
Aidman12-Mar-03 5:22
Aidman12-Mar-03 5:22 

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.