My Project
|
Button interface class Provide interface for creating/removing button. More...
#include "interface/button.h"
Public Member Functions | |
Button () | |
Button (int ID) | |
Button (int X, int Y, int HEIGHT, int WIDTH, WCHAR *TEXT=NULL) | |
~Button () | |
HWND | create (int X, int Y, int HEIGHT, int WIDTH, WCHAR *TEXT) override |
LRESULT | setImage (int rID) |
HWND | getHWND () |
void | remove () override |
![]() | |
BaseInterfaceCtrl () | |
BaseInterfaceCtrl (HWND hWnd, HINSTANCE hInst) | |
~BaseInterfaceCtrl () | |
Additional Inherited Members | |
![]() | |
static HWND | hWnd |
static HINSTANCE | hInst |
Button::Button | ( | ) |
Empty constructor. No action.
Definition at line 5 of file button.cpp.
Button::Button | ( | int | ID | ) |
Constructor sets ID in 'id' variable
[in] | ID | Unique identify of button |
Definition at line 10 of file button.cpp.
Button::Button | ( | int | X, |
int | Y, | ||
int | HEIGHT, | ||
int | WIDTH, | ||
WCHAR * | TEXT = NULL |
||
) |
Constructor create and display button
[in] | X | X coordinate |
[in] | Y | Y coordinate |
[in] | HEIGHT | Height of the window |
[in] | WIDTH | Width of the window |
[in] | TEXT | Text which is displaying on element |
Definition at line 15 of file button.cpp.
Button::~Button | ( | ) |
Destructor. Removes button (Does not free memory)
Definition at line 20 of file button.cpp.
|
overridevirtual |
Create and display button
[in] | X | X coordinate |
[in] | Y | Y coordinate |
[in] | HEIGHT | Height of the window |
[in] | WIDTH | Width of the window |
[in] | TEXT | Text which is displaying on element |
Implements BaseInterfaceCtrl.
Definition at line 25 of file button.cpp.
HWND Button::getHWND | ( | ) |
|
overridevirtual |
Removes button (Does not free memory)
Implements BaseInterfaceCtrl.
Definition at line 49 of file button.cpp.
LRESULT Button::setImage | ( | int | rID | ) |
Set image on button
[in] | rID | Resourse ID (in resource.h) |
Definition at line 38 of file button.cpp.