event AfterDrawPart (Part as DrawPartEnum, hDC as Long, X as Long, Y as Long, Width as Long, Height as Long)
Occurs right after drawing the part of the control.

 TypeDescription 
   Part as DrawPartEnum A Part being painted.  
   hDC as Long A long expression that specifies the handle of the device context where you can draw.  
   X as Long A long expression that specifies the left coordinate of the rectangle where the paint should occur.   
   Y as Long A long expression that specifies the top coordinate of the rectangle where the paint should occur.  
   Width as Long A long expression that specifies the width of the rectangle where the paint should occur.  
   Height as Long A long expression that specifies the height of the rectangle where the paint should occur.  
The BeforeDrawPart and AfterDrawPart events occur when different parts of the control requires to be drawn. Use the BeforeDrawPart and AfterDrawPart events to add your custom drawing to be shown in the component. Use the BeforeDrawPart event to perform your own drawing before the default drawing, canceling the default drawing, or changing the area being assigned to the part part when painting. Use the AfterDrawPart event to perform your own drawing after default painting occurs. The /NET Assembly provides instead hDC and (X,Y,Width,Height) parameters a Graphics object and a Rectangle object, the last being passed by reference. Use the HistogramBoundsChanged event to notify your application when the left part of the histogram is resized, so inside controls must be re-positioned.


Send comments on this topic.
© 1999-2012 Exontrol.COM, Software. All rights reserved.