static_bitmap Class Reference

#include <static_bitmap.h>

Collaboration diagram for static_bitmap:

Collaboration graph
[legend]
List of all members.

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_bitmapoperator= (static_bitmap &)

Protected Attributes

bitmap_dib

Detailed Description

Definition at line 32 of file static_bitmap.h.


Constructor & Destructor Documentation

static_bitmap::static_bitmap (  ) 

Definition at line 32 of file static_bitmap.cpp.

static_bitmap::~static_bitmap (  )  [virtual]

Definition at line 34 of file static_bitmap.cpp.

References _dib, and WHACK().

static_bitmap::static_bitmap ( const static_bitmap  )  [protected]


Member Function Documentation

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]

Definition at line 106 of file static_bitmap.cpp.

References update().

BOOL static_bitmap::OnQueryNewPalette (  )  [protected]

Definition at line 113 of file static_bitmap.cpp.

References realize_palette().

void static_bitmap::OnPaletteChanged ( CWnd *  pFocusWnd  )  [protected]

Definition at line 115 of file static_bitmap.cpp.

References realize_palette().

static_bitmap& static_bitmap::operator= ( static_bitmap  )  [protected]


Member Data Documentation

bitmap* static_bitmap::_dib [protected]

Definition at line 57 of file static_bitmap.h.

Referenced by load(), paint(), realize_palette(), valid(), and ~static_bitmap().


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 04:31:01 2008 for HOOPLE Libraries by  doxygen 1.5.1