Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Show status inforamtion (CFileFind) ? Pin
Don Box29-Jan-07 22:14
Don Box29-Jan-07 22:14 
QuestionRe: Show status inforamtion (CFileFind) ? Pin
David Crow30-Jan-07 2:25
David Crow30-Jan-07 2:25 
QuestionRe: Show status inforamtion (CFileFind) ? Pin
Laxman Auti30-Jan-07 2:34
Laxman Auti30-Jan-07 2:34 
QuestionRe: Show status inforamtion (CFileFind) ? Pin
Hamid_RT30-Jan-07 2:55
Hamid_RT30-Jan-07 2:55 
QuestionWM_PAINT and WM_ERASEBKGND Pin
Nishad S29-Jan-07 19:56
Nishad S29-Jan-07 19:56 
AnswerRe: WM_PAINT and WM_ERASEBKGND Pin
Stephen Hewitt29-Jan-07 20:00
Stephen Hewitt29-Jan-07 20:00 
GeneralRe: WM_PAINT and WM_ERASEBKGND Pin
Nishad S29-Jan-07 20:10
Nishad S29-Jan-07 20:10 
GeneralRe: WM_PAINT and WM_ERASEBKGND Pin
Stephen Hewitt29-Jan-07 20:18
Stephen Hewitt29-Jan-07 20:18 
NS17 wrote:
But my doubt is, since WM_PAINT will update enough area in the window, is WM_ERASEBKGND necessary

It depends. If your WM_PAINT handler paints every dirty pixel then you don't need WM_ERASEBKGND. If, as is generally the case, the WM_PAINT handler only touches a subset of the dirty pixels then without the WM_ERASEBKGND handler the dirty pixels not painted will still be dirty. It depends on your application.

You can handle the WM_ERASEBKGND message and return 0 to stop the erasing if you want to.


Steve

GeneralRe: WM_PAINT and WM_ERASEBKGND Pin
Nishad S29-Jan-07 21:07
Nishad S29-Jan-07 21:07 
GeneralRe: WM_PAINT and WM_ERASEBKGND Pin
Waldermort29-Jan-07 21:28
Waldermort29-Jan-07 21:28 
GeneralRe: WM_PAINT and WM_ERASEBKGND Pin
Nishad S29-Jan-07 22:40
Nishad S29-Jan-07 22:40 
GeneralRe: WM_PAINT and WM_ERASEBKGND Pin
Waldermort30-Jan-07 1:54
Waldermort30-Jan-07 1:54 
QuestionRe: WM_PAINT and WM_ERASEBKGND Pin
code_discuss18-Dec-07 20:13
code_discuss18-Dec-07 20:13 
AnswerRe: WM_PAINT and WM_ERASEBKGND Pin
Member 16192558-Mar-10 20:24
Member 16192558-Mar-10 20:24 
AnswerRe: WM_PAINT and WM_ERASEBKGND Pin
Javad Taheri (drjackool)8-Mar-15 6:06
Javad Taheri (drjackool)8-Mar-15 6:06 
GeneralRe: WM_PAINT and WM_ERASEBKGND Pin
Member 16192558-Mar-10 20:40
Member 16192558-Mar-10 20:40 
GeneralRe: WM_PAINT and WM_ERASEBKGND Pin
Nishad S8-Mar-10 22:02
Nishad S8-Mar-10 22:02 
QuestionAny way to start an application at bootup? Pin
ShaluMalu29-Jan-07 19:37
ShaluMalu29-Jan-07 19:37 
AnswerRe: Any way to start an application at bootup? Pin
Naveen29-Jan-07 20:34
Naveen29-Jan-07 20:34 
AnswerRe: Any way to start an application at bootup? Pin
Roger Stoltz29-Jan-07 21:43
Roger Stoltz29-Jan-07 21:43 
AnswerRe: Any way to start an application at bootup? Pin
James R. Twine30-Jan-07 1:23
James R. Twine30-Jan-07 1:23 
QuestionProblem with WriteFile Pin
amitmistry_petlad 29-Jan-07 19:14
amitmistry_petlad 29-Jan-07 19:14 
AnswerRe: Problem with WriteFile Pin
Stephen Hewitt29-Jan-07 19:34
Stephen Hewitt29-Jan-07 19:34 
GeneralRe: Problem with WriteFile Pin
amitmistry_petlad 29-Jan-07 22:09
amitmistry_petlad 29-Jan-07 22:09 
GeneralRe: Problem with WriteFile Pin
David Crow30-Jan-07 2:30
David Crow30-Jan-07 2:30 

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.