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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flicker Free Resize? 2

Status
Not open for further replies.

Skute

Programmer
Jul 21, 2003
272
GB
Hi,

Im having trouble with an application i wrote where by the resizing of the window is causing alot of flickering. Also, if i invalidate the whole window it causes a flicker. Is there any way of getting around these problems? Ive already used single buffering in my paint code to stop flickering when drawing, but now its the other 2 problems which im stuck on.

Regards

Skute

Skute

"There are 10 types of people in this World, those that understand binary, and those that don't!"
 
By default, windows will respond to the WM_ERASEBKGND message by painting the entire window with the background color. This message gets sent a lot when a window is resized or invalidated. So try catching this message, and have the message handler do nothing. This should eliminate the flicker, unless it is caused by the paint code itself.
 
Hmm yeah, thats made it alot better, still some flicker around. Cheers!

Skute

"There are 10 types of people in this World, those that understand binary, and those that don't!"
 
cheers, thankyou :D

Skute

"There are 10 types of people in this World, those that understand binary, and those that don't!"
 
oops, i tried to give 1 star but the website crashed so i pressed refresh...oh well...enjoy both of them!

Skute

"There are 10 types of people in this World, those that understand binary, and those that don't!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top