Click here to Skip to main content
15,914,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMSDN annoying prompts Pin
ed welch4-Feb-03 5:14
ed welch4-Feb-03 5:14 
Generaldraw rectangle selection Pin
jeremysay4-Feb-03 5:10
jeremysay4-Feb-03 5:10 
GeneralRe: draw rectangle selection Pin
Michael Dunn4-Feb-03 5:18
sitebuilderMichael Dunn4-Feb-03 5:18 
GeneralRe: draw rectangle selection Pin
jeremysay4-Feb-03 5:51
jeremysay4-Feb-03 5:51 
GeneralMFC... WM_PAINT message Pin
Mciccarone3574-Feb-03 4:48
Mciccarone3574-Feb-03 4:48 
GeneralRe: MFC... WM_PAINT message Pin
Roger Allen4-Feb-03 6:02
Roger Allen4-Feb-03 6:02 
GeneralRe: MFC... WM_PAINT message Pin
357magnum4-Feb-03 10:46
357magnum4-Feb-03 10:46 
GeneralRe: MFC... WM_PAINT message Pin
Paul M Watt4-Feb-03 20:42
mentorPaul M Watt4-Feb-03 20:42 
That is probably your problem.

Calling invalidate invalidates the entire window, and instructs it to repaint the entire window. The false indicates that you do not need the windows background to be erased.

The most important thing to remember with WM_PAINT is that it is not really a message that gets entered into the message queue. Windows only generates that message on a thread when there are no other messages, and a window has an invalid region. In order to prevent the WM_PAINT Message from being called, simply validate the window region with the ValidateRect and ValidateRgn functions.


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralVisual C++ Pin
Rage4-Feb-03 4:45
professionalRage4-Feb-03 4:45 
Generalchange html help files to windows help files Pin
includeh104-Feb-03 4:25
includeh104-Feb-03 4:25 
GeneralRe: change html help files to windows help files Pin
Roger Allen4-Feb-03 6:06
Roger Allen4-Feb-03 6:06 
GeneralRe: change html help files to windows help files Pin
Iain Clarke, Warrior Programmer4-Feb-03 6:43
Iain Clarke, Warrior Programmer4-Feb-03 6:43 
GeneralMFC exe file size Pin
Anonymous4-Feb-03 4:13
Anonymous4-Feb-03 4:13 
GeneralRe: MFC exe file size Pin
RobJones4-Feb-03 4:36
RobJones4-Feb-03 4:36 
GeneralRe: MFC exe file size Pin
Anonymous4-Feb-03 4:50
Anonymous4-Feb-03 4:50 
GeneralRe: MFC exe file size Pin
Anonymous4-Feb-03 4:55
Anonymous4-Feb-03 4:55 
GeneralRe: MFC exe file size Pin
includeh104-Feb-03 5:40
includeh104-Feb-03 5:40 
GeneralRe: MFC exe file size Pin
Anonymous4-Feb-03 5:45
Anonymous4-Feb-03 5:45 
GeneralRe: MFC exe file size Pin
includeh104-Feb-03 6:55
includeh104-Feb-03 6:55 
GeneralRe: MFC exe file size Pin
Anonymous5-Feb-03 22:37
Anonymous5-Feb-03 22:37 
GeneralRe: MFC exe file size Pin
Nitron4-Feb-03 13:40
Nitron4-Feb-03 13:40 
GeneralRe: MFC exe file size Pin
Anonymous5-Feb-03 22:37
Anonymous5-Feb-03 22:37 
Generalfirst chance exception when stepping in Pin
ns4-Feb-03 4:13
ns4-Feb-03 4:13 
GeneralRe: first chance exception when stepping in Pin
Alvaro Mendez4-Feb-03 4:23
Alvaro Mendez4-Feb-03 4:23 
Generalterrific advice! Pin
ns4-Feb-03 7:32
ns4-Feb-03 7:32 

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.