SplitterCoolPaint 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 (SmartWin::Canvas &canvas, unsigned cursorX, unsigned cursorY, const SmartWin::Rectangle &rect)
 Paints the "moving splitter".
virtual ~SplitterCoolPaint ()
 Virtual DTOR to ensure deletion through base pointer.


Detailed Description

Aspect class for a WidgetSplitter.

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


Member Function Documentation

void paintSplitterMoving ( SmartWin::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 get 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 it will automatically be erased with a second call with the same cursoro position.

Back to SmartWin website
SourceForge.net Logo