#pragma once #include "resource.h" #include "afxwin.h" #include "TreeListCtrl.h" #include "BtnST.h" class CGJFCNewDlg : public CDialog { DECLARE_DYNAMIC(CGJFCNewDlg) public: CGJFCNewDlg(CWnd* pParent = NULL); virtual~CGJFCNewDlg(void); enum { IDD = IDD_GJFC_DLG }; protected: virtual void DoDataExchange(CDataExchange* pDX); DECLARE_MESSAGE_MAP() public: virtual BOOL OnInitDialog(); protected: virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); afx_msg LONG_PTR onAcadKeepFocus( UINT_PTR, LONG_PTR); afx_msg void OnBnClickedButton3(); afx_msg void OnBnClickedButton4(); afx_msg void OnBnClickedButton6(); afx_msg void OnBnClickedButton7(); afx_msg void OnBnClickedButton8(); afx_msg void OnBnClickedButton1(); afx_msg void OnBnClickedButton2(); afx_msg void OnBnClickedButton5(); afx_msg void OnBnClickedButton9(); afx_msg void OnBnClickedButton10(); afx_msg void OnBnClickedButton11(); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg LRESULT OnPickfirstModified(WPARAM wp,LPARAM lp); afx_msg void OnSelChanged(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnNMRclickTreee(NMHDR *pNMHDR, LRESULT *pResult); protected: HTREEITEM NewFloor(CString& sName,double dBomEl,bool bTip = true); void OnRename(); void InitObjListColumn(); void InitDxf2CnName(); CString GetCnEntName(CString& sDxf); void AndRefrushFromEntity(); void AppendFloor(CString& sFloor,AcDbEntity* pEnt); bool GetChildDxfs(HTREEITEM pChild,CStringArray& arDxfs); bool GetChildIds(HTREEITEM pChild,AcDbObjectIdArray& arIds,CMapStringToPtr* pmapHandToItem); bool GetChildDxfsAndHandles(HTREEITEM pChild,CStringArray& arDxfs,CStringArray& arHandles); void CreateChildItem(AecDbObjXDataMap* pXData); HTREEITEM GetRootItem(HTREEITEM hItem); bool IsRootItem(HTREEITEM hItem); void UnColorLightThisPick(); void ColorLightThisPick(); void DoPopularMenu(HTREEITEM hItem,CPoint point); BOOL XDataMapRead(AecDbObjXDataMap& xDataLayMap,AcDbObjectId& id,CString& sLayName); BOOL XDataMapWrite(AecDbObjXDataMap& xDataLayMap,AcDbObjectId& id,CString& sLayName); void RemoveObjectId(AcDbObjectId& id); void export2D(); void export3D(); void exportUpdate(); bool GetSelectItem(CString &sFloor, AcDbObjectIdArray &ar); void RemoveLayerFromEntity(CString &sFloor, CStringArray &arHandles); protected: CStatic m_wndObjFrm; CImageList m_imageList; CTreeListCtrl m_wndObjList; AcDbObjectIdArray m_arLastPick; CMapStringToPtr m_mapNameToRoot; CRect m_rcMain,m_rcBt; CMapStringToString m_mapDXF2CnName; CMapStringToPtr m_mapHandToItemPos; BOOL m_bSelChanged; CImageList m_Imagelist24; CButtonST m_wndBtNew; CButtonST m_wndBtRename; CButtonST m_wndBtDel; CButtonST m_wndBtRef; CButtonST m_wndBtHide; CButtonST m_wndBtShow; CButtonST m_wndBtAdd; CButtonST m_wndBtRemove; CButtonST m_wndButton7; CButtonST m_wndButton10; CButtonST m_wndButton11; };