Re: Snappy Rendering of Controls

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Ying-Shen Yu[MSFT] (v-yiy_at_online.microsoft.com)
Date: 07/14/04


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.



Relevant Pages

  • Re: Motorcycle Race Accident ................dramatic video footage
    ... red-flagged the race. ... What I can tell you is that not getting the right flags up ... As a cornerworker, your order of priorities ... come from the control station and the red flags must go up everywhere ...
    (rec.motorcycles.racing)
  • Re: math co-processor exceptions
    ... :> Should include unmasking of the lo-order 6 flags in the ... but this isn't about emulation. ... you haven't a control word. ... I don't want to be checking exception flags after every single ...
    (comp.lang.asm.x86)
  • displaying bitflags as enumerated text and not int
    ... Im trying to expose one of its internal properties so the user can set ... public String DWFlags { ... in the control field. ... I also want the user to be able to enter the flags as the above text, ...
    (microsoft.public.dotnet.languages.csharp)
  • Is this possible in VB.Net?
    ... Controlling Download and Execution ... The WebBrowser Control gives you control over what it downloads, displays, ... if these flags are set. ...
    (microsoft.public.dotnet.general)
  • Is this possible in VB.Net?
    ... Controlling Download and Execution ... The WebBrowser Control gives you control over what it downloads, displays, ... if these flags are set. ...
    (microsoft.public.dotnet.languages.vb)