// //------------------------------------------------------------------------ //文件名: MyPropertyPage.cpp : implementation file // 创建人: cwk // 日 期: // 描 述: // 版 本: // 修改人: // 修改日期: // 修改目的: //------------------------------------------------------------------------- #if !defined(AFX_MYPROPERTYPAGE_H__28F1001E_B07A_47A7_AB0C_676B1EA6A5F0__INCLUDED_) #define AFX_MYPROPERTYPAGE_H__28F1001E_B07A_47A7_AB0C_676B1EA6A5F0__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // MyPropertyPage.h : header file // #include "resource.h" #include "InPlaceEdit.h" #include "XMLDOMFile.h" #include "adui.h" #include "acui.h" #ifndef TARCH_SETTING_MSG_UPDATA #define TARCH_SETTING_MSG_UPDATA WM_USER+102 #define TARCH_SETTING_MSG_BUTTONSTATION WM_USER+103 #define TARCH_SETTING_MSG_BUTTONOK WM_USER+104 #endif ///////////////////////////////////////////////////////////////////////////// // CInPlacePage dialog class CFontPropertyPage : public CAcUiTabChildDialog { DECLARE_DYNCREATE(CFontPropertyPage) // Construction public: CFontPropertyPage(CWnd* pParent = NULL); ~CFontPropertyPage(); // Dialog Data //{{AFX_DATA(CInPlacePage) enum { IDD = IDD_DIALOG_FONTCOL }; BOOL m_bChecked; CInPlaceEdit m_cFontCol; CSpinButtonCtrl m_cSpin; CInPlaceEdit m_cBkCol; CInPlaceEdit m_cEdit; int m_cFontHeight; //}}AFX_DATA static CString m_str; //add by fxj 080925 // int m_nRClick; // BOOL m_bShortcutMenu; // BOOL m_bZoomKey; //add by fxj 081229 BOOL m_bDwgTabBar; // DWORD m_nMenuTime; BOOL m_bShow;//启动时是否显示平台界面 // Overrides // ClassWizard generate virtual function overrides //{{AFX_VIRTUAL(CFontPropertyPage) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation public: void UpdateFontProperty(const Array& aryNodeInfo); void SetFontProperty(const CXMLNodeInfoEx&nodeInfo); void ApplySet(); BOOL ReadIni(); BOOL WriteIni(); protected: // Generated message map functions //{{AFX_MSG(CInPlacePage) afx_msg void OnSetFontColour(); afx_msg void OnBkcolour(); afx_msg void OnChangeEditFontheight(); // afx_msg void OnShortcutMenu();//add by fxj 080925 // afx_msg void OnBnClickedRclick(); // afx_msg void OnBnClickedCtrlRclick(); // afx_msg void OnBnClickedSlowRclick(); virtual BOOL OnInitDialog(); afx_msg LRESULT OnReUpdataDlg(WPARAM w,LPARAM l);// 更新对话框 afx_msg LRESULT OnReOK(WPARAM w,LPARAM l); //}}AFX_MSG DECLARE_MESSAGE_MAP() virtual void OnOK(); void UpdataGlobal(); int GetIndex(const CXMLNodeInfoEx &data); int GetSubStrNumInStr(const CString &str,const CString strSub)//得到子串在原字符串中的位置定义尽适用于 “asd sd fg” 中查询asd等以空格分界 { CString strTem; CStringArray arystr; int nPos = str.Find(_T(" "),0); int nStart = 0; while (nPos!=-1) { int nNum = nPos-nStart; strTem = str.Mid(nStart,nNum); arystr.Add(strTem); nStart = nPos+1; nPos = str.Find(_T(" "),nPos+1); } int nSize = str.GetLength(); if (nStart-1