wGui::CPicture Class Reference

A picture control. More...

#include <wg_picture.h>

Inheritance diagram for wGui::CPicture:

wGui::CWindow wGui::CMessageClient

Public Member Functions

Protected Attributes


Detailed Description

A picture control.

Will take a picture file and display it The CPicture control does not do any sort of resizing, but it will clip the picture to the client rect

Definition at line 41 of file wg_picture.h.


Constructor & Destructor Documentation

wGui::CPicture::CPicture ( const CRect WindowRect,
CWindow pParent,
const std::wstring &  sPictureFile,
bool  bDrawBorder = false,
const CRGBColor BorderColor = DEFAULT_LINE_COLOR 
)

Constructs a new picture control

Parameters:
WindowRect A CRect that defines the outer limits of the control
pParent A pointer to the parent window
sPictureFile The picture resource, must be a bitmap (.bmp)
bDrawBorder If true, it will draw a border around the picture, defaults to false
BorderColor The color to use when drawing the border

Definition at line 32 of file wg_picture.cpp.

References Draw(), wGui::CRect::Grow(), m_bDrawBorder, and wGui::CWindow::m_ClientRect.

wGui::CPicture::CPicture ( const CRect WindowRect,
CWindow pParent,
const CBitmapResourceHandle hBitmap,
bool  bDrawBorder = false,
const CRGBColor BorderColor = DEFAULT_LINE_COLOR 
)

Constructs a new picture control

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
bDrawBorder If true, it will draw a border around the picture, defaults to false
BorderColor The color to use when drawing the border

Definition at line 47 of file wg_picture.cpp.

References Draw(), wGui::CRect::Grow(), m_bDrawBorder, and wGui::CWindow::m_ClientRect.


Member Function Documentation

void wGui::CPicture::SetWindowRect ( const CRect WindowRect  )  [virtual]

Giving a control a new WindowRect will move and resize the control

Parameters:
WindowRect A CRect that defines the outer limits of the control

Reimplemented from wGui::CWindow.

Definition at line 87 of file wg_picture.cpp.

References wGui::CRect::Grow(), wGui::CWindow::m_ClientRect, wGui::CWindow::m_WindowRect, wGui::CWindow::SetWindowRect(), and wGui::CRect::SizeRect().


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