#if !defined(AFX_TUANMANAGE_H__CA2284E0_3349_46E7_9B70_14E9ABBC58EB__INCLUDED_) #define AFX_TUANMANAGE_H__CA2284E0_3349_46E7_9B70_14E9ABBC58EB__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // TuanManage.h : header file // #include "resource.h" #include "SlidePicture.h" #include "GsPreviewCtrl2.h" #include "PatEdit.h" #include "PatToolBar.h" #include "xPatSplitterWnd.h" ///////////////////////////////////////////////////////////////////////////// // CPatternManage dialog class CPatternManage:public CAcUiDialog { friend class CGsPreviewCtrl2; // Construction public: CPatternManage(CWnd* pParent = NULL); // standard constructor CPatternManage(CString str, CWnd* pParent = NULL); void OnReBuildPat2(CString str); void OnModifyPat2(CString str); void OnDelPat2(CString str); void ExitAndSave(CString str); void Select(CString str); void Select2(CString str); void XiePai(int nPai,CString str); BOOL MakeNewPat(const TCHAR *sPatName,int type); void ErasePat(const TCHAR *sPatName); BOOL RemakePat(int type); BOOL IsCurPage(CString str); void InitToolBar(BOOL bInitToolBar); void InitWindows(); void ReBuildDataBase(int nFlag,const TCHAR *p); BOOL Find(const TCHAR* sPatName); void SetupPicture(); void SetScrollBarRange(); void SaveState(); void CreateDataBase(); void ReadFile(); void ResetSize(long nIncX, long nIncY); void ReFresh(BOOL b,CString str = _T("")); void DelRefresh(CString str); void MouseWheel(short n); BOOL RemoveCol(); void Update(); void UpdateState(); BOOL m_bInitWindowMode; BOOL m_bResize; BOOL m_bXiepai; BOOL m_bSave; BOOL m_bInitMode; TCHAR sFileName[256]; CString m_sTempName; CString m_sPreSelect; CString m_sCurSelect; CString m_sForOnlyOneDel; CString m_sNext; CSize m_sizeDlg; UINT m_sizeOldX,m_sizeOldY; Array m_arrName; DList m_ctrlPreviews; Array m_RectArray; AcDbDatabase dbPreview; TPats pats; CSlidePicture m_cSlidePicture; CPatToolBar m_PatToolBar; CxPatSplitterWnd m_xSplitter; //add by xlc on 080828 CMenu m_menu; // Dialog Data //{{AFX_DATA(CPatternManage) enum { IDD = IDD_DLG_PATTERN_MANAGE }; CStatic m_cTip2; CStatic m_cTip; CScrollBar m_cScrollBar; CListBox m_cPatName; CString m_sStateTip; CString m_sStateTip2; //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CPatternManage) public: virtual BOOL DestroyWindow(); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(CPatternManage) virtual BOOL OnInitDialog(); afx_msg void OnToolbarDropDown(NMHDR* pnmh, LRESULT* plRes); afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); afx_msg void OnNewPat1(); afx_msg void OnNewPat2(); afx_msg void OnDelPat(); afx_msg void OnReBuildPat(); afx_msg void OnBlkLayout(); afx_msg void OnModifyPat(); afx_msg void OnOkExitSave(); afx_msg void OnSelchangeListPatname(); afx_msg void OnDblclkListPatname(); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); //}}AFX_MSG afx_msg void OnLayout(UINT nID); DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_TUANMANAGE_H__CA2284E0_3349_46E7_9B70_14E9ABBC58EB__INCLUDED_)