TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: John Slagle
date: 1996-08-05 15:59:48
subject: Beginner WM_PAINT

I am in Ch 4 of Petzolds book of PM programming and have a couple of
questions regarding repaint of invalid rectangles.
 
The first is concerning PMs ability to consolodate WM_PAINT messages
and the related invalidated rectangles inside the message queue.
Would a paint message get posted if an identical message w/ identical
rectangle corrdinates was already in the queue?
 
Also, would a pending paint message get deleted/replaced if another
message were posted with a larger rectangle that completely encompasses
an invalid rectangle inside the queue to the same client window?
 
After thinking this over a bit, my guess is that regardless of what
was already in the queue, new WM_PAINT messages are always posted.
This would reduce PM complexity.  The client would recieve all paint
messages, even if there were duplicates.
 
The last question I have is concerning the effort to check the queue
for duplicate paint messages, or for rectangles that encompass smaller
invalid regions attached to exitsing paint messages.
 
Another possible way of minimizing repaints would be to SEND a user
message to the client procedure that says "the entire window is going
to need repainted soon" with the client ignoring all WM_PAINTS until
the promised message arrives.  Again, is this paint minimizing worth
the effort?
 
thx,
John
 


--- Maximus/2 3.01
* Origin: Dustoff (1:104/476)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1
@PATH: 104/476 466 531 627 3615/50 396/1 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.