OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Painting a Gadget Window

Just as with regular windows, TGadgetWindow implements the TGadgetWindow::Paint function, as follows:

void Paint(TDC& dc, bool erase, TRect& rect);

This implementation of the Paint function selects the window's font into the device context and calls the function PaintGadgets:

virtual void PaintGadgets(TDC& dc, bool erase, TRect& rect);

PaintGadgets iterates through the gadgets in the window and requests each one to draw itself. You can override PaintGadgets to implement a custom look for your window, such as separator lines, a raised look, and so on.