wGui::CPictureButton Class Reference

Picture Buttons are pushbuttons that display a bitmap in place of a text label. More...

#include <wg_button.h>

Inheritance diagram for wGui::CPictureButton:

wGui::CButton wGui::CWindow wGui::CMessageClient

Public Member Functions


Detailed Description

Picture Buttons are pushbuttons that display a bitmap in place of a text label.

Definition at line 114 of file wg_button.h.


Constructor & Destructor Documentation

wGui::CPictureButton::CPictureButton ( const CRect WindowRect,
CWindow pParent,
std::wstring  sPictureFile 
)

Constructs a new picture button

Parameters:
WindowRect A CRect that defines the outer limits of the control
pParent A pointer to the parent window
sPictureFile The file to use as the button's picture

Definition at line 197 of file wg_button.cpp.

References Draw().

wGui::CPictureButton::CPictureButton ( const CRect WindowRect,
CWindow pParent,
const CBitmapResourceHandle hBitmap 
)

Constructs a new picture button

Parameters:
WindowRect A CRect that defines the outer limits of the control
pParent A pointer to the parent window
hBitmap A handle for the bitmap resource

Definition at line 206 of file wg_button.cpp.

References Draw().


Member Function Documentation

void wGui::CPictureButton::SetPicture ( std::wstring  sPictureFile  ) 

Change the picture the button displays

Parameters:
sPictureFile The file to use as the button's picture

Definition at line 221 of file wg_button.cpp.

void wGui::CPictureButton::SetPicture ( const CBitmapResourceHandle hBitmap  ) 

Change the picture the button displays

Parameters:
hBitmap A handle for the bitmap resource

Definition at line 227 of file wg_button.cpp.

References Draw().


The documentation for this class was generated from the following files:
Generated on Wed May 16 23:11:27 2007 for wGui by  doxygen 1.5.1