DynamicProPage.cpp 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. // DynamicProPage.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. //#include <afxtempl.h>
  5. #include "IDE.h"
  6. #include "DrawObj.h"
  7. #include "DynamicProPage.h"
  8. #include "DynColorDlg.h"
  9. #ifdef _DEBUG
  10. #define new DEBUG_NEW
  11. #undef THIS_FILE
  12. static char THIS_FILE[] = __FILE__;
  13. #endif
  14. //const CString actionType[] =
  15. //{
  16. // g_strControl, g_strSet, g_strAdjust, g_strPictureLink, g_strExit, g_strExLink
  17. //};
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CDynamicProPage property page
  20. IMPLEMENT_DYNCREATE(CDynamicProPage, CPropertyPage)
  21. CDynamicProPage::CDynamicProPage() : CPropertyPage(CDynamicProPage::IDD)
  22. {
  23. //{{AFX_DATA_INIT(CDynamicProPage)
  24. m_bVertiSize = FALSE;
  25. m_bVertiPos = FALSE;
  26. m_bOnMove = FALSE;
  27. m_bLineColor = FALSE;
  28. m_bHorizSize = FALSE;
  29. m_bHorizPos = FALSE;
  30. m_bForeColor = FALSE;
  31. m_bOnButtonUp = FALSE;
  32. m_bOnButtonDown = FALSE;
  33. m_bBackColor = FALSE;
  34. m_strHoriPos = _T("");
  35. m_strHoriSize = _T("");
  36. m_strVertiPos = _T("");
  37. m_strVertiSize = _T("");
  38. m_nHorAlign = -1;
  39. m_nVerAlign = -1;
  40. m_arrayActionType[0] = g_strControl;
  41. m_arrayActionType[1] = g_strSet;
  42. m_arrayActionType[2] = g_strAdjust;
  43. m_arrayActionType[3] = g_strPictureLink;
  44. m_arrayActionType[4] = g_strExit;
  45. m_arrayActionType[5] = g_strExLink;
  46. m_arrayActionType[6] = g_strTestAlarm;
  47. m_arrayActionType[7] = g_strAlarmRed;
  48. m_arrayActionType[8] = g_strNoticeRed;
  49. m_arrayActionType[9] = g_strDeviceLog;
  50. m_arrayActionType[10] = g_strSystemLog;
  51. m_arrayActionType[11] = g_strVarManage;
  52. m_arrayActionType[12] = g_strUserManage;
  53. m_arrayActionType[13] = g_strPwdManage;
  54. m_arrayActionType[14] = g_strFirstPage;
  55. m_arrayActionType[15] = g_strNativageTree;
  56. //}}AFX_DATA_INIT
  57. }
  58. CDynamicProPage::~CDynamicProPage()
  59. {
  60. }
  61. void CDynamicProPage::DoDataExchange(CDataExchange* pDX)
  62. {
  63. CPropertyPage::DoDataExchange(pDX);
  64. //{{AFX_DATA_MAP(CDynamicProPage)
  65. DDX_Check(pDX, IDC_CHECKVERTISIZE, m_bVertiSize);
  66. DDX_Check(pDX, IDC_CHECKVERTIPOSITION, m_bVertiPos);
  67. DDX_Check(pDX, IDC_CHECKMOUSEMOVE, m_bOnMove);
  68. DDX_Check(pDX, IDC_CHECKLINECOLOR, m_bLineColor);
  69. DDX_Check(pDX, IDC_CHECKHORIZSIZE, m_bHorizSize);
  70. DDX_Check(pDX, IDC_CHECKHORIZPOSITION, m_bHorizPos);
  71. DDX_Check(pDX, IDC_CHECKFORECOLOR, m_bForeColor);
  72. DDX_Check(pDX, IDC_CHECKBUTTONUP, m_bOnButtonUp);
  73. DDX_Check(pDX, IDC_CHECKBUTTONDOWN, m_bOnButtonDown);
  74. DDX_Check(pDX, IDC_CHECKBACKCOLOR, m_bBackColor);
  75. DDX_Text(pDX, IDC_HORIPOSITION, m_strHoriPos);
  76. DDX_Text(pDX, IDC_HORISIZE, m_strHoriSize);
  77. DDX_Text(pDX, IDC_VERTIPOSITION, m_strVertiPos);
  78. DDX_Text(pDX, IDC_VERTISIZE, m_strVertiSize);
  79. DDX_Radio(pDX, IDC_HORALIGN, m_nHorAlign);
  80. DDX_Radio(pDX, IDC_VERALIGN, m_nVerAlign);
  81. //}}AFX_DATA_MAP
  82. }
  83. BEGIN_MESSAGE_MAP(CDynamicProPage, CPropertyPage)
  84. //{{AFX_MSG_MAP(CDynamicProPage)
  85. ON_BN_CLICKED(IDC_SETFORECOLOR, OnSetforecolor)
  86. ON_BN_CLICKED(IDC_SETLINECOLOR, OnSetlinecolor)
  87. ON_BN_CLICKED(IDC_SETBACKCOLOR, OnSetbackcolor)
  88. ON_BN_CLICKED(IDC_SETBUTTONDOWN, OnSetbuttondown)
  89. ON_BN_CLICKED(IDC_SETBUTTONUP, OnSetbuttonup)
  90. ON_BN_CLICKED(IDC_SETMOUSEMOVE, OnSetmousemove)
  91. ON_BN_CLICKED(IDC_HSIZECONEDIT, OnHsizeconedit)
  92. ON_BN_CLICKED(IDC_VSIZECONEDIT, OnVsizeconedit)
  93. ON_BN_CLICKED(IDC_HPOSCONEDIT, OnHposconedit)
  94. ON_BN_CLICKED(IDC_VPOSCONEDIT, OnVposconedit)
  95. //}}AFX_MSG_MAP
  96. END_MESSAGE_MAP()
  97. /////////////////////////////////////////////////////////////////////////////
  98. // CDynamicProPage message handlers
  99. void CDynamicProPage::OnSetforecolor()
  100. {
  101. CDynColorDlg dlg;
  102. dlg.m_clr = m_clrForeColor;
  103. dlg.m_strCon = m_strForeColorCondition;
  104. if (dlg.DoModal() == IDOK)
  105. {
  106. m_clrForeColor = dlg.m_clr;
  107. m_strForeColorCondition = dlg.m_strCon;
  108. }
  109. }
  110. void CDynamicProPage::OnSetlinecolor()
  111. {
  112. CDynColorDlg dlg;
  113. dlg.m_clr = m_clrLineColor;
  114. dlg.m_strCon = m_strFLineColorCondition;
  115. if (dlg.DoModal() == IDOK)
  116. {
  117. m_clrLineColor = dlg.m_clr;
  118. m_strFLineColorCondition = dlg.m_strCon;
  119. }
  120. }
  121. void CDynamicProPage::OnSetbackcolor()
  122. {
  123. CDynColorDlg dlg;
  124. dlg.m_clr = m_clrBackColor;
  125. dlg.m_strCon = m_strBackColorCondition;
  126. if (dlg.DoModal() == IDOK)
  127. {
  128. m_clrBackColor = dlg.m_clr;
  129. m_strBackColorCondition = dlg.m_strCon;
  130. }
  131. }
  132. void CDynamicProPage::OnSetbuttondown()
  133. {
  134. }
  135. void CDynamicProPage::OnSetbuttonup()
  136. {
  137. }
  138. void CDynamicProPage::OnSetmousemove()
  139. {
  140. }
  141. void CDynamicProPage::OnHsizeconedit()
  142. {
  143. }
  144. void CDynamicProPage::OnVsizeconedit()
  145. {
  146. }
  147. void CDynamicProPage::OnHposconedit()
  148. {
  149. }
  150. void CDynamicProPage::OnVposconedit()
  151. {
  152. }