Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Order of WM_Paint, WM_erasebkgnd, WM_size

Status
Not open for further replies.

73195

Technical User
Dec 30, 2003
1
US
Hi,
I am very novice user and want to learn the internal order of commands wm_paint, wm_erasebkgnd,wm_size. I am trying to write a software

a) sometimes doesn't erase the background and draw another graphic onto background
b) erases the background on resize of window or at user's request.

I wrote something which contaings something like

case WM_ERASEBKGND:
if (flag == 0) //don't erase
return 0;

but something is wrong, the deletion of background is delayed sometimes. That is why I ask the order of these signals. thank you.
 
1. There is no order of received messages on which you can rely, there is no predefined order on receiving messages
and it is wrong to create an aplication which relies on some message order. You always should suppose what messages are totally unordered.
2. Don't say signals to messages. Signals are quite other things.

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top