TWR
T windows api WRapper
|
#include <TwrWnd.h>
Public Member Functions | |
TwrWnd () | |
TwrWnd (HWND newWnd) | |
virtual | ‾TwrWnd () |
BOOL | UpdateWindow () |
BOOL | ShowWindow (int nCmdShow) |
void | EnableWindow (BOOL enabled) |
HWND | getHwnd () |
void | destroyWindow (void) |
void | setText (const TCHAR *text) |
void | setPoint (int x, int y) |
void | setSize (int w, int h) |
void | setFont (HFONT font) |
Protected Attributes | |
HWND | hWnd |
tstring | title |
int | left |
int | top |
int | width |
int | height |
Tatsu's windows api WRapper
Window base class
TwrWnd::TwrWnd | ( | ) |
コンストラクタ
TwrWnd::TwrWnd | ( | HWND | newWnd | ) |
コンストラクタ
newHwnd | オブジェクトに結び付けるウインドウハンドル |
void TwrWnd::EnableWindow | ( | BOOL | enabled | ) |
ウインドウの利用可能状態を変更します。
enabled | true:使用可能 false:使用不可能 |
void TwrWnd::setFont | ( | HFONT | font | ) |
ウインドウのフォントを変更します。
font | フォントのハンドル |
void TwrWnd::setPoint | ( | int | x, |
int | y | ||
) |
ウインドウのタイトル文字列を変更します。
x | x座標 |
y | y座標 |
void TwrWnd::setSize | ( | int | w, |
int | h | ||
) |
ウインドウのサイズを変更します。
w | 幅 |
h | 高さ |
void TwrWnd::setText | ( | const TCHAR * | text | ) |
ウインドウのタイトル文字列を変更します。
text | 設定する文字列 |
BOOL TwrWnd::ShowWindow | ( | int | nCmdShow | ) |
ウインドウの表示状態を変更します。
BOOL TwrWnd::UpdateWindow | ( | ) |
ウインドウを更新します。
|
virtual |
デストラクタ
Windowsのウインドウも破棄します。