#if !defined(AFX_FINDANDINSTEADVPIPEDIMDLG_H__8A360011_1CBE_4E73_97BE_9FFE93D43A55__INCLUDED_) #define AFX_FINDANDINSTEADVPIPEDIMDLG_H__8A360011_1CBE_4E73_97BE_9FFE93D43A55__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "resource.h" class CFindAndInsteadVPipeDimDlg : public CModelessDialog { public: CFindAndInsteadVPipeDimDlg(CWnd* pParent = NULL); // 判断是否有对话框存在 static bool IsCreatedDlg(); // 清空选择集 void ClearData(); CButton m_wndBtnSearch; //{{AFX_DATA(CFindAndInsteadVPipeDimDlg) enum { IDD = IDD_FIND_INSTEAD_VPIPEDIM }; CString m_sBefore1; CString m_sBefore2; CString m_sFloor1; CString m_sFloor2; CString m_sNum1; CString m_sNum2; int m_nStyle; //}}AFX_DATA //{{AFX_VIRTUAL(CFindAndInsteadVPipeDimDlg) public: virtual BOOL PreTranslateMessage(MSG* pMsg); protected: virtual void DoDataExchange(CDataExchange* pDX); //}}AFX_VIRTUAL // 设置查找范围为整张图 void InitPickSet(); // 用户定义查找范围 bool GetPickSetByCustom(); // 设定编号外包框 void SetSelEntBox(); // 筛选出符合条件的编号 void GetRightDims(); // 设定按钮状态 void SetBtnStyle(); void AddNot(); protected: // Generated message map functions //{{AFX_MSG(CFindAndInsteadVPipeDimDlg) afx_msg LONG_PTR onAcadKeepFocus(UINT_PTR, LONG_PTR); virtual BOOL OnInitDialog(); afx_msg void OnBtnInsteadAll(); afx_msg void OnBtnInstead(); afx_msg void OnBtnFindNext(); afx_msg void OnSelchangeComboFindStyle(); afx_msg void OnBtnSearch(); afx_msg void OnClose(); afx_msg void OnChangeEditNum1(); afx_msg void OnChangeEditFloor1(); afx_msg void OnChangeEditBefore1(); virtual void OnCancel(); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: PickSet m_ss;// 全部标注 PickSet m_ssRight;// 符合条件的标注 Entity m_ent;// 当前要修改的标注 static bool m_bCreatedDlg; // 是否已经创建对话框 int m_nSearch, m_nInstead; bool m_bFirstSearch; CToolTipCtrl m_wndToolTip; }; #endif // !defined(AFX_FINDANDINSTEADVPIPEDIMDLG_H__8A360011_1CBE_4E73_97BE_9FFE93D43A55__INCLUDED_)