Re: Snappy Rendering of Controls
From: Ying-Shen Yu[MSFT] (v-yiy_at_online.microsoft.com)
Date: 07/14/04
- Next message: Anand: "Re: MultiThreading in VB.Net"
- Previous message: usha: "sort to top"
- In reply to: Phil Jones: "Re: Snappy Rendering of Controls"
- Next in thread: Phil Jones: "Re: Snappy Rendering of Controls"
- Reply: Phil Jones: "Re: Snappy Rendering of Controls"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 14 Jul 2004 06:58:23 GMT
Hi Phil,
Great!
My suggestion was to apply these code into every controls on your Form ,
not only the custom container control. PictureBox is just a sample since
you mentioned in your reply.
These flags are indicate this control supports user paint,
it should no do painting when gets WM_ERASEBKGND, when repainting,
it should repaint the whole control into a memory graphic object instead of
draw on the screen directly ( double-buffing)
and redraw the window when its size changed (normally, the window does not
need redraw if its size is become smaller).
these flags are only effective to the control you call SetStyle on , it
will not affect the child controls in it.
And it should not have a big impact on performance for the first three
flags, as the last flags it does cause more repainting however some owner
draw control relies on this behavior, you may try commenting it and see if
your form repaints correctly.
Best regards,
Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.
- Next message: Anand: "Re: MultiThreading in VB.Net"
- Previous message: usha: "sort to top"
- In reply to: Phil Jones: "Re: Snappy Rendering of Controls"
- Next in thread: Phil Jones: "Re: Snappy Rendering of Controls"
- Reply: Phil Jones: "Re: Snappy Rendering of Controls"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|