TWR T windows api WRapper

- Main Page
- Classes
- Files

- File List

All Classes Functions
TwrWnd.h
1 #ifndef TWRWND_H
2 #define TWRWND_H
3
4 #include <windows.h>
5
6 #include "tstring.h"
7
12 class TwrWnd {
13 protected:
14 HWND hWnd;
15 tstring title;
16 int left;
17 int top;
18 int width;
19 int height;
20 public:
21 TwrWnd();
22 TwrWnd(HWND newWnd);
23 virtual ‾TwrWnd();
24
25 BOOL UpdateWindow();
26 BOOL ShowWindow(int nCmdShow);
27 void EnableWindow(BOOL enabled);
28 HWND getHwnd() {
29 return hWnd;
30 }
31 void destroyWindow(void) {
32 DestroyWindow(hWnd);
33 }
34 void setText(const TCHAR *text);
35 void setPoint(int x, int y);
36 void setSize(int w, int h);
37 void setFont(HFONT font);
38 };
39
40 #endif