#if !defined(AFX_INSBLOCKDLG_H__3D4B82DA_1CF3_4854_BB51_3D74706CCD09__INCLUDED_) #define AFX_INSBLOCKDLG_H__3D4B82DA_1CF3_4854_BB51_3D74706CCD09__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // InsBlockDlg.h : header file // ///////////////////////////////////////////////////////////////////////////// // CInsBlockDlg dialog #include "Resource.h" //#include #include #include #include // 工具条提示错误,可能是资源切换有误,故重载一下 cet 2012.11.21 add class CValveTooBar: public XToolBarCtrl { protected: //{{AFX_MSG(XToolBarCtrl) // NOTE - the ClassWizard will add and remove member functions here. //}}AFX_MSG afx_msg BOOL OnToolTipText(UINT nID, NMHDR* pNMHDR, LRESULT* pResult); DECLARE_MESSAGE_MAP() }; class CInsBlockDlg : public CModelessDialog { // Construction public: CInsBlockDlg(const TCHAR* szTKName, int iOpenMode, CWnd* pParent = NULL); //0:阀门阀件 1:管道附件 standard constructor DECLARE_DYNAMIC(CInsBlockDlg) // Dialog Data //{{AFX_DATA(CInsBlockDlg) enum { IDD = IDD_INS_TWT_BLK }; CSlideStatic m_staticSlide; //}}AFX_DATA void Reset(); CComboBox m_com; CValveTooBar m_ToolBar; CString m_BlockName; CString m_csCurBlkName, m_csCurDwbName, m_csCurRecord, m_csTKName, m_csTKAllName; BOOL m_bNeedRotate, m_bIsPlan, m_bNeedFlange; int m_iMode; //0:插入 1:替换 2:入库 CString m_csPlanType, m_csSysType, m_csCurType; BOOL m_bSuccess; CStatusBar m_Status; //状态条 用于显示图块名称 int m_nIndex, m_nPage, m_nCurPos;//幻灯片总索引 页号 在当前页中的当前选中位置 int m_iColNum; //显示幻灯行数 int m_iRowNum; //显示幻灯列数 // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CInsBlockDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support virtual void PostNcDestroy(); //}}AFX_VIRTUAL // Implementation protected: void UpdateDlgData(BOOL bIsRead); BOOL LoadCurBlk(); BOOL IsInRect(UINT CtrlID, CPoint point); // Generated message map functions //{{AFX_MSG(CInsBlockDlg) afx_msg void OnSelchangeComboType(); afx_msg void OnLayout11(); afx_msg void OnLayout22(); afx_msg void OnLayout33(); afx_msg void OnLayout44(); afx_msg void OnLayout46(); afx_msg void OnLayout(); afx_msg void OnExchange(); afx_msg void OnButtonPgup(); afx_msg void OnButtonPgdown(); afx_msg void OnButtonRotate(); afx_msg void OnButtonFlange(); afx_msg void OnButtonSetting(); afx_msg void OnButtonIns(); afx_msg void OnButtonNew(); afx_msg void OnButtonReplace(); afx_msg void OnButtonBlkMan(); afx_msg void OnButtonPlan(); afx_msg void OnButtonSys(); afx_msg void OnButtonSan1(); afx_msg void OnButtonSan2(); afx_msg void OnButtonSan3(); afx_msg void OnButtonFeed(); afx_msg void OnButtonDrain(); afx_msg void OnButtonOther(); afx_msg void OnButtonFire(); afx_msg void OnButtonZoom(); virtual BOOL OnInitDialog(); afx_msg void OnClose(); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnLButtonUp(UINT nFlags, CPoint point); afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg void OnPaint(); afx_msg void OnContextMenu(CWnd* pWnd, CPoint point); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_INSBLOCKDLG_H__3D4B82DA_1CF3_4854_BB51_3D74706CCD09__INCLUDED_)