00001
00002
00003
00004
00005
00006
00007
00008 #ifndef LIBGUI_CWINDOW_H_
00009 #define LIBGUI_CWINDOW_H_
00010
00011 #include "CForm.h"
00012
00013 class CButton;
00014 class CPanel;
00015
00019 class CWindow : public CForm
00020 {
00021 public:
00027 CWindow(const CHAR* title);
00028 ~CWindow();
00034 virtual void Add(CComponent* component);
00041 virtual void SetSize(INT16 width, INT16 height);
00042 protected:
00043 virtual void CloseAction();
00044 private:
00050 static void DispatchAction(void* window, CComponent* component);
00051 protected:
00052 INT16 m_content_width;
00053 INT16 m_content_height;
00054 private:
00058 CButton* m_close;
00062 CPanel* m_content;
00063 };
00064
00065 #endif