00001 #ifndef DIALOG_WINDOW_H_
00002 #define DIALOG_WINDOW_H_
00003
00004 #include"Common.h"
00005 #include"Controls.h"
00006
00007 namespace FemViewer {
00008 namespace Win {
00009
00010
00011
00012 class DialogWindow {
00013 public:
00014 DialogWindow(HINSTANCE hInst, WORD id, HWND hParent, DLGPROC Proc);
00015 virtual ~DialogWindow();
00016 virtual BOOL Create();
00017 virtual void InitControls(){}
00018 VOID Show(int cmdShow=SW_SHOWDEFAULT);
00019 HWND GetHandle() { return m_handle; }
00020 VOID SetPosition(int x, int y) { this->m_posx = x; m_posy = y; }
00021
00022 protected:
00023 HWND m_handle;
00024 HWND m_parent;
00025 WORD m_id;
00026 int m_posx, m_posy;
00027 int m_width, m_height;
00028 HINSTANCE m_hInstance;
00029 DLGPROC m_pfnDialogMsg;
00030 };
00031
00032
00033 class DialogApprox : public DialogWindow {
00034 public:
00035 DialogApprox(void * params, HINSTANCE hInst, WORD id, HWND hParent, DLGPROC Proc)
00036 : DialogWindow(hInst,id,hParent,Proc)
00037 {
00038 InitControls(params);
00039 }
00040 ~DialogApprox() {}
00041
00042 BOOL Create(void * params);
00043 void InitControls(void * params);
00044 private:
00045
00046
00047
00048 RadioButton m_rbtnMesh2D;
00049 RadioButton m_rbtnMesh3D;
00050 RadioButton m_rbtnMeshTR;
00051
00052 RadioButton m_rbtnApproxDG;
00053 RadioButton m_rbtnApproxSTD;
00054 };
00055
00056 }
00057 }
00058
00059 #endif
00060