Raised when the application wants to draw or paint the rectangle itself. and the UserDraw attribute is True.
- hDC
The handle to the device context to draw to.
- x
The x coordinate of the rectangle.
- y
The y coordinate of the rectangle.
- Width
The width of the rectangle.
- height
The height of the rectangle.
- layerHandle
The layer handle of the rectangle.
- seqNum
The sequence number of the rectangle.
- userLong
Application supplied identifier.
The UserDraw attribute must be true for this event to fire.
When the UserDraw event raises, the Rectangle does not perform its normal painting, but just raises the event.