74 lines
1.9 KiB
C++
74 lines
1.9 KiB
C++
#pragma once
|
|
#include "resource.h"
|
|
#include "afxwin.h"
|
|
#include "SuperGridCtrlEx.h"
|
|
#include "BtnST.h"
|
|
|
|
class CGJFCDlg : public CDialog
|
|
{
|
|
DECLARE_DYNAMIC(CGJFCDlg)
|
|
|
|
public:
|
|
CGJFCDlg(CWnd* pParent = NULL);
|
|
virtual ~CGJFCDlg();
|
|
|
|
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);
|
|
public:
|
|
afx_msg LRESULT OnItemSelected(WPARAM wp,LPARAM lp);
|
|
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 OnSize(UINT nType, int cx, int cy);
|
|
afx_msg LRESULT OnPickfirstModified(WPARAM wp,LPARAM lp);
|
|
|
|
protected:
|
|
void UnColorLightThisPick();
|
|
void ColorLightThisPick();
|
|
void InitObjListColumn();
|
|
bool GetChildIds(CTreeItem* pChild,AcDbObjectIdArray& arIds,CMapStringToPtr* pmapHandToItem = NULL);
|
|
void CreateChildItem(AecDbObjXDataMap* pXData);
|
|
bool GetChildDxfs(CTreeItem* pChild,CStringArray& arDxfs);
|
|
CString GetCnEntName(CString& sDxf);
|
|
void InitDxf2CnName();
|
|
|
|
CTreeItem* GetRootItem(int nSel);
|
|
|
|
CImageList m_imageList;
|
|
CStatic m_wndObjFrm;
|
|
CSuperGridCtrlEx m_wndObjList;
|
|
AcDbObjectIdArray m_arLastPick;
|
|
CMapStringToPtr m_mapNameToRoot;
|
|
CRect m_rcMain,m_rcBt;
|
|
CMapStringToString m_mapDXF2CnName;
|
|
CMapStringToPtr m_mapHandToItemPos;
|
|
|
|
public:
|
|
CImageList m_Imagelist24;
|
|
CButtonST m_wndBtNew;
|
|
CButtonST m_wndBtDel;
|
|
CButtonST m_wndBtRef;
|
|
CButtonST m_wndBtHide;
|
|
CButtonST m_wndBtShow;
|
|
CButtonST m_wndBtAdd;
|
|
CButtonST m_wndBtRemove;
|
|
CButtonST m_wndButton7;
|
|
afx_msg void OnBnClickedButton9();
|
|
afx_msg void OnBnClickedButton10();
|
|
afx_msg void OnBnClickedButton11();
|
|
};
|