D:/Programming/GUI Editor (Source)/SettingsDlg.cpp
00001
00002
00003
00004 #include "stdafx.h"
00005 #include "GUIEditor.h"
00006 #include "SettingsDlg.h"
00007 #include "MainFrm.h"
00008
00009
00010
00011 IMPLEMENT_DYNAMIC(CSettingsDlg, CDialog)
00012 CSettingsDlg::CSettingsDlg(CWnd* pParent )
00013 : CDialog(CSettingsDlg::IDD, pParent)
00014 {
00015 m_pCurrentHost = NULL;
00016 }
00017
00018 CSettingsDlg::~CSettingsDlg()
00019 {
00020
00021 }
00022
00023 void CSettingsDlg::DoDataExchange(CDataExchange* pDX)
00024 {
00025 CDialog::DoDataExchange(pDX);
00026 }
00027
00028
00029 BEGIN_MESSAGE_MAP(CSettingsDlg, CDialog)
00030 ON_WM_SIZE()
00031 END_MESSAGE_MAP()
00032
00033
00034 BOOL CSettingsDlg::OnInitDialog()
00035 {
00036 if(!CDialog::OnInitDialog())
00037 return FALSE;
00038
00039 m_PropCtrl.Create(this, IDC_PROP);
00040 }
00041
00042 void CSettingsDlg::SetPropPointer(IPropertyHost *pHost)
00043 {
00044 if(pHost !=NULL)
00045 {
00046 m_pCurrentHost = pHost;
00047 m_PropCtrl.SetPropertyHost(pHost);
00048 }
00049 else
00050 {
00051 m_pCurrentHost = NULL;
00052 m_PropCtrl.SetPropertyChangeListener(NULL);
00053 m_PropCtrl.SetPropertyHost(NULL);
00054 }
00055 }
00056
00057 void CSettingsDlg::OnSize(UINT nType, int cx, int cy)
00058 {
00059 CDialog::OnSize(nType, cx, cy);
00060 }
00061
Generated on Sun Jul 17 21:34:28 2005 for OpenGL GUI by
1.3.8