00001
00007 #ifndef _WINDOW_H_
00008 #define _WINDOW_H_
00009
00014 class Window {
00015
00016 public:
00017
00022 Window();
00023
00028 ~Window();
00029
00030 public:
00031
00038 void registerClass( HINSTANCE hInst, const char* ATitle );
00039
00050 void initInstance( HINSTANCE hInst, int nCmdShow, const char* ATitle, const char* WTitle, int w, int h );
00051
00055 int getWidth() const {
00056 return width;
00057 }
00058
00062 int getHeight() const {
00063 return height;
00064 }
00065
00071 const HWND & getHwnd() const;
00072
00078 const HINSTANCE & get_hInstance() const;
00079
00085 void setWindowed( BOOL newWindowed );
00086
00092 BOOL getWindowed() const;
00093
00100 bool toggleWindowed();
00101
00102
00103
00104
00105
00106
00107 POINT getWindowStartPt();
00108
00109 private:
00110
00111 int width;
00112 int height;
00113
00118 RECT oldPosition;
00119
00124 BOOL windowed;
00125
00130 HWND hWnd;
00131
00136 HINSTANCE hInstance;
00137
00138 };
00139
00140 #endif