SplitterThinPaint Class Reference

Aspect class for a WidgetSplitter. More...

List of all members.

Protected Member Functions

void paintSplitter (unsigned width, unsigned ySize, HWND handle)
 Actually paints the splitter.
void paintSplitterMoving (Canvas &canvas, unsigned cursorX, unsigned cursorY, const SmartWin::Rectangle &rect)
 Paints the "moving splitter".
virtual ~SplitterThinPaint ()
 Virtual DTOR to ensure deletion through base class pointer.


Detailed Description

Aspect class for a WidgetSplitter.

If the Painter parameter to the WidgetSplitter instance is this class the splitter will get the "this" look.
Related classes < ul > < li >SplitterCoolPaint< /li > < li >WidgetSplitter< /li > < li >WidgetSplitterBase< /li > < /ul >


Member Function Documentation

void paintSplitterMoving ( Canvas canvas,
unsigned  cursorX,
unsigned  cursorY,
const SmartWin::Rectangle rect 
) [protected]

Paints the "moving splitter".

This function basically gets the position of the cursor in client coordinates of the parent Widget.
It gets the size ( rect ) of the parent window in client coordinates. In addition it gets an update canvas.
Also SmartWin++ creates a HdcModeSetter in a "R2_NOTXORPEN" before it calls this function.
This means that you may draw stuff and unless you set your own mode and overrides the default it will automatically be erased.

Back to SmartWin website
SourceForge.net Logo