Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

# painter_base Struct Reference

painter_base is the base class of all painters for background_wnd . More...

Inheritance diagram for painter_base:

List of all members.

## Public Member Functions
virtual bool | is_opaque (int cx, int cy) const
virtual void | draw (HDC hDC, int cx, int cy)=0
virtual painter_base * | clone () const =0
## Protected Member Functions
| painter_base (const painter_base &)
const painter_base & | operator= (const painter_base &)

## Detailed Description

painter_base is the base class of all painters for background_wnd .

If you want to create a special painter for background_wnd take the following steps:

- Derive from painter_base
- Implement draw() which paints to the passed DC
- background_wnd supports up to two parameters which are passed to the constructor of your painter when one is added. Add typedef's for the parameter types of your constructor. The first type must be typedef'ed to "param0", the second to "param1"
- If your painter draws the whole area opaque override is_opaque() and return true. This will increase performance because painters underneath this painter which aren't visible won't be drawn ;-)

| by Steven Weiss. You can contact me at steven11@gmx.de.