Files
envi-code/SourceCode/Code2026/Pool3dCmd/XMLCDlg.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

100 lines
2.6 KiB
C++

#pragma once
#include "resource.h"
#include "TreeListCtrl.h"
#include "BtnST.h"
#include "AecFloorViewDataRecord.h"
class CXMLCDlg : public CDialog
{
DECLARE_DYNAMIC(CXMLCDlg)
public:
CXMLCDlg(CWnd* pParent = NULL);
virtual ~CXMLCDlg();
enum { IDD = IDD_XMLC_DLG };
void Refrush();
protected:
virtual void DoDataExchange(CDataExchange* pDX);
// 下面两个函数防止关闭对话框
virtual BOOL PreTranslateMessage(MSG* pMsg);
virtual void OnCancel();
DECLARE_MESSAGE_MAP()
public:
virtual BOOL OnInitDialog();
afx_msg void OnBnClickedButton1();
afx_msg void OnBnClickedButton2();
afx_msg void OnBnClickedButton3();
afx_msg void OnBnClickedButton4();
afx_msg void OnBnClickedButton5();
afx_msg void OnBnClickedButton6();
afx_msg void OnBnClickedButton8();
afx_msg void OnBnClickedButton9();
afx_msg LONG_PTR onAcadKeepFocus(UINT_PTR, LONG_PTR);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnSelChanged(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnNMClickTree1(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnNMClickTree(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnBnClickedChkAutoseL();
protected:
void NewProjectFloorView(CString &sName, double dBomEl, CString &sBasePt, CString &sRem);
void InitObjListColumn();
BOOL GetItemViewData(HTREEITEM hItem, FloorViewData &data);
double GetProBomEl();
double GetBomElTo(HTREEITEM hCurFloor, FloorViewData &vtTo);
double GetBomElTo(AecFloorViewDataRecord *pRec, FloorViewData &vtTo);
void SetActive(HTREEITEM hItem, FloorViewData &viewData);
void ShowFloorEntities(FloorViewData * pViewData, double dBomEl, Adesk::Int16 nActive);
void RemoveFloorEntities(LPCTSTR pszID);
UINT EnableMenuItem(HTREEITEM hItem, UINT nID);
//框选**图
void OnCrossSelFloorView(HTREEITEM hItem);
//选择dwg文件 **图
void OnSeldwgFloorView(HTREEITEM hItem);
//打开dwg文件 **图
void OnOpenFloorViewdwgFile(HTREEITEM hItem);
void RemoveFloorFrame(LPCTSTR pszName);
void ShowFloorFrame(LPCTSTR pszName, Adesk::Int16 nActive);
void OnModifyPro();
void OnModifyFloor();
void On3DAxisLineCopy();
void GetFloorAxisLines(LPCTSTR pszID, AcDbObjectIdArray &arIds);
protected:
CRect m_rcMain;//原始大小
CRect m_rcBt;
CImageList m_Imagelist;
CTreeListCtrl m_wndFloorView;
bool m_bAutoSelEnt;
AcDbObjectIdArray m_idIns, m_idOuts;
public:
CButton m_wndChkAutoSel; // 是否自动选择实体 ID_XMLC_CHK_AUTOSEL
CButtonST m_wndBt1;
CButtonST m_wndBt2;
CButtonST m_wndBt3;
CButtonST m_wndBt4;
CButtonST m_wndBt5;
CButtonST m_wndBt6;
CButtonST m_wndBt8;
CButtonST m_wndBt9;
CImageList m_Imagelist24;
};