// DynamicProPage.cpp : implementation file // #include "stdafx.h" //#include #include "IDE.h" #include "DrawObj.h" #include "DynamicProPage.h" #include "DynColorDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif //const CString actionType[] = //{ // g_strControl, g_strSet, g_strAdjust, g_strPictureLink, g_strExit, g_strExLink //}; ///////////////////////////////////////////////////////////////////////////// // CDynamicProPage property page IMPLEMENT_DYNCREATE(CDynamicProPage, CPropertyPage) CDynamicProPage::CDynamicProPage() : CPropertyPage(CDynamicProPage::IDD) { //{{AFX_DATA_INIT(CDynamicProPage) m_bVertiSize = FALSE; m_bVertiPos = FALSE; m_bOnMove = FALSE; m_bLineColor = FALSE; m_bHorizSize = FALSE; m_bHorizPos = FALSE; m_bForeColor = FALSE; m_bOnButtonUp = FALSE; m_bOnButtonDown = FALSE; m_bBackColor = FALSE; m_strHoriPos = _T(""); m_strHoriSize = _T(""); m_strVertiPos = _T(""); m_strVertiSize = _T(""); m_nHorAlign = -1; m_nVerAlign = -1; m_arrayActionType[0] = g_strControl; m_arrayActionType[1] = g_strSet; m_arrayActionType[2] = g_strAdjust; m_arrayActionType[3] = g_strPictureLink; m_arrayActionType[4] = g_strExit; m_arrayActionType[5] = g_strExLink; m_arrayActionType[6] = g_strTestAlarm; m_arrayActionType[7] = g_strAlarmRed; m_arrayActionType[8] = g_strNoticeRed; m_arrayActionType[9] = g_strDeviceLog; m_arrayActionType[10] = g_strSystemLog; m_arrayActionType[11] = g_strVarManage; m_arrayActionType[12] = g_strUserManage; m_arrayActionType[13] = g_strPwdManage; m_arrayActionType[14] = g_strFirstPage; m_arrayActionType[15] = g_strNativageTree; //}}AFX_DATA_INIT } CDynamicProPage::~CDynamicProPage() { } void CDynamicProPage::DoDataExchange(CDataExchange* pDX) { CPropertyPage::DoDataExchange(pDX); //{{AFX_DATA_MAP(CDynamicProPage) DDX_Check(pDX, IDC_CHECKVERTISIZE, m_bVertiSize); DDX_Check(pDX, IDC_CHECKVERTIPOSITION, m_bVertiPos); DDX_Check(pDX, IDC_CHECKMOUSEMOVE, m_bOnMove); DDX_Check(pDX, IDC_CHECKLINECOLOR, m_bLineColor); DDX_Check(pDX, IDC_CHECKHORIZSIZE, m_bHorizSize); DDX_Check(pDX, IDC_CHECKHORIZPOSITION, m_bHorizPos); DDX_Check(pDX, IDC_CHECKFORECOLOR, m_bForeColor); DDX_Check(pDX, IDC_CHECKBUTTONUP, m_bOnButtonUp); DDX_Check(pDX, IDC_CHECKBUTTONDOWN, m_bOnButtonDown); DDX_Check(pDX, IDC_CHECKBACKCOLOR, m_bBackColor); DDX_Text(pDX, IDC_HORIPOSITION, m_strHoriPos); DDX_Text(pDX, IDC_HORISIZE, m_strHoriSize); DDX_Text(pDX, IDC_VERTIPOSITION, m_strVertiPos); DDX_Text(pDX, IDC_VERTISIZE, m_strVertiSize); DDX_Radio(pDX, IDC_HORALIGN, m_nHorAlign); DDX_Radio(pDX, IDC_VERALIGN, m_nVerAlign); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CDynamicProPage, CPropertyPage) //{{AFX_MSG_MAP(CDynamicProPage) ON_BN_CLICKED(IDC_SETFORECOLOR, OnSetforecolor) ON_BN_CLICKED(IDC_SETLINECOLOR, OnSetlinecolor) ON_BN_CLICKED(IDC_SETBACKCOLOR, OnSetbackcolor) ON_BN_CLICKED(IDC_SETBUTTONDOWN, OnSetbuttondown) ON_BN_CLICKED(IDC_SETBUTTONUP, OnSetbuttonup) ON_BN_CLICKED(IDC_SETMOUSEMOVE, OnSetmousemove) ON_BN_CLICKED(IDC_HSIZECONEDIT, OnHsizeconedit) ON_BN_CLICKED(IDC_VSIZECONEDIT, OnVsizeconedit) ON_BN_CLICKED(IDC_HPOSCONEDIT, OnHposconedit) ON_BN_CLICKED(IDC_VPOSCONEDIT, OnVposconedit) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CDynamicProPage message handlers void CDynamicProPage::OnSetforecolor() { CDynColorDlg dlg; dlg.m_clr = m_clrForeColor; dlg.m_strCon = m_strForeColorCondition; if (dlg.DoModal() == IDOK) { m_clrForeColor = dlg.m_clr; m_strForeColorCondition = dlg.m_strCon; } } void CDynamicProPage::OnSetlinecolor() { CDynColorDlg dlg; dlg.m_clr = m_clrLineColor; dlg.m_strCon = m_strFLineColorCondition; if (dlg.DoModal() == IDOK) { m_clrLineColor = dlg.m_clr; m_strFLineColorCondition = dlg.m_strCon; } } void CDynamicProPage::OnSetbackcolor() { CDynColorDlg dlg; dlg.m_clr = m_clrBackColor; dlg.m_strCon = m_strBackColorCondition; if (dlg.DoModal() == IDOK) { m_clrBackColor = dlg.m_clr; m_strBackColorCondition = dlg.m_strCon; } } void CDynamicProPage::OnSetbuttondown() { } void CDynamicProPage::OnSetbuttonup() { } void CDynamicProPage::OnSetmousemove() { } void CDynamicProPage::OnHsizeconedit() { } void CDynamicProPage::OnVsizeconedit() { } void CDynamicProPage::OnHposconedit() { } void CDynamicProPage::OnVposconedit() { }