00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #if !defined(SJDLGWINDOW_H_INCLUDED)
00012 #define SJDLGWINDOW_H_INCLUDED
00013
00014 namespace sjgui{
00015
00016 namespace SJGUI_USE_STYLE
00017 {
00018 extern GLfloat def_dlg_wnd_border_color[4];
00019 extern GLfloat def_dlg_wnd_bg_color[4];
00020 extern GLfloat def_dlg_wnd_bg_sel_color[4];
00021 }
00022
00033 template<class Tbase>
00034 class CPlaneWndCtrlTmpl : public Tbase
00035 {
00036 public:
00037 CPlaneWndCtrlTmpl()
00038 {
00039 SetBgColor(SJGUI_USE_STYLE::def_dlg_wnd_bg_color);
00040 SetBgSelColor(SJGUI_USE_STYLE::def_dlg_wnd_bg_sel_color);
00041
00042
00043 m_yVisible=false;
00044 }
00045
00047 virtual void OnShow(){if(GetParentWnd()!=NULL)GetParentWnd()->BringOnTop(this);}
00049 virtual void OnFocusRecv(){if(GetParentWnd()!=NULL)GetParentWnd()->BringOnTop(this);}
00050 };
00051
00052 }
00053
00054 #endif // !defined(SJDLGWINDOW_H_INCLUDED)