00001
00007 #ifndef _WINDOW_H_
00008 #define _WINDOW_H_
00009
00015 class Window {
00016
00017 public:
00018
00023 Window();
00024
00029 ~Window();
00030
00031 public:
00032
00039 void registerClass( HINSTANCE hInst, const char* ATitle );
00040
00050 BOOL initInstance( HINSTANCE hInst, int nCmdShow, const char* ATitle, const char* WTitle );
00051
00057 const HWND & getHwnd() const;
00058
00064 const HINSTANCE & get_hInstance() const;
00065
00066
00067
00068
00069
00070
00071
00077 void setWindowed( BOOL newWindowed );
00078
00084 BOOL getWindowed() const;
00085
00092 bool toggleWindowed();
00093
00094 private:
00095
00100 RECT oldPosition;
00101
00106 BOOL windowed;
00107
00112 HWND hWnd;
00113
00118 HINSTANCE hInstance;
00119
00120 };
00121
00122 #endif