#include <static_bitmap.h>
Collaboration diagram for static_bitmap:

Public Member Functions | |
| static_bitmap () | |
| virtual | ~static_bitmap () |
| bool | valid () const |
| bool | load (const istring &name) |
| bool | load (HINSTANCE instance, const char *resource) |
| void | update () |
| bool | realize_palette (bool force_background) |
Protected Member Functions | |
| void | paint (bool valid) |
| afx_msg HBRUSH | CtlColor (CDC *pDC, UINT nCtlColor) |
| afx_msg BOOL | OnQueryNewPalette () |
| afx_msg void | OnPaletteChanged (CWnd *pFocusWnd) |
| static_bitmap (const static_bitmap &) | |
| static_bitmap & | operator= (static_bitmap &) |
Protected Attributes | |
| bitmap * | _dib |
Definition at line 32 of file static_bitmap.h.
| static_bitmap::static_bitmap | ( | ) |
Definition at line 32 of file static_bitmap.cpp.
| static_bitmap::~static_bitmap | ( | ) | [virtual] |
| static_bitmap::static_bitmap | ( | const static_bitmap & | ) | [protected] |
| bool static_bitmap::valid | ( | ) | const |
Definition at line 36 of file static_bitmap.cpp.
References _dib, and bitmap::valid().
Referenced by realize_palette(), and update().
| bool static_bitmap::load | ( | const istring & | name | ) |
Definition at line 38 of file static_bitmap.cpp.
References _dib, bitmap::load_from_file(), realize_palette(), and update().
| bool static_bitmap::load | ( | HINSTANCE | instance, | |
| const char * | resource | |||
| ) |
Definition at line 46 of file static_bitmap.cpp.
References _dib, bitmap::load_from_resource(), realize_palette(), and update().
| void static_bitmap::update | ( | ) |
Definition at line 104 of file static_bitmap.cpp.
References paint(), and valid().
Referenced by CtlColor(), load(), and realize_palette().
| bool static_bitmap::realize_palette | ( | bool | force_background | ) |
Definition at line 117 of file static_bitmap.cpp.
References _dib, bitmap::get_palette(), update(), valid(), and palette::win_palette().
Referenced by load(), OnPaletteChanged(), and OnQueryNewPalette().
| void static_bitmap::paint | ( | bool | valid | ) | [protected] |
Definition at line 54 of file static_bitmap.cpp.
References _dib, bitmap::height(), bitmap::paint(), bitmap::width(), and width.
Referenced by update().
| HBRUSH static_bitmap::CtlColor | ( | CDC * | pDC, | |
| UINT | nCtlColor | |||
| ) | [protected] |
| BOOL static_bitmap::OnQueryNewPalette | ( | ) | [protected] |
| void static_bitmap::OnPaletteChanged | ( | CWnd * | pFocusWnd | ) | [protected] |
| static_bitmap& static_bitmap::operator= | ( | static_bitmap & | ) | [protected] |
bitmap* static_bitmap::_dib [protected] |
Definition at line 57 of file static_bitmap.h.
Referenced by load(), paint(), realize_palette(), valid(), and ~static_bitmap().
1.5.1