////////////////////////////////////////////////////////////////////////// // 文件列表视图 // 创建人: 周风生、黄荣平 ////////////////////////////////////////////////////////////////////////// #if !defined(AFX_MYLISTVIEW_H__C2D2BFCA_E033_464C_910A_232D77C8E831__INCLUDED_) #define AFX_MYLISTVIEW_H__C2D2BFCA_E033_464C_910A_232D77C8E831__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif class AcEdBlockDrag; #include "afxcview.h" class CMyListView : public CListView { protected: CMyListView(); DECLARE_DYNCREATE(CMyListView) public: double m_dBlockScale; BOOL m_bTracking; BOOL m_bDown; BOOL m_bMove; BOOL m_bColor; int m_nRcolor; int m_nGcolor; int m_nBcolor; int m_nMenuType; int m_nSelected; CString m_sRcdName; CBitmap m_Bitmap; CString sBlockName; void DeleteBlockArryBtwDwg(CStringArray &sBlockArr); void InSertBlock(); void BlockInstead(); void getAllListItem(CStringArray &strRcdNames); void DeleteBlock(); void SelectAll(); void SetBlockCommand(); public: virtual BOOL PreTranslateMessage(MSG* pMsg); //{{AFX_VIRTUAL(CMyListView) protected: virtual void OnInitialUpdate(); virtual BOOL DestroyWindow(); virtual void OnDraw(CDC* pDC); virtual BOOL PreCreateWindow(CREATESTRUCT& cs); //}}AFX_VIRTUAL protected: virtual ~CMyListView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: CBitmap m_bitmap; // 背景图片 //{{AFX_MSG(CMyListView) afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnInSertBlock(); afx_msg void OnAcadInSertBlock(); afx_msg void OnBegindrag(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnDropFiles(HDROP hDropInfo); afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg void OnDeleteblock(); afx_msg void OnAddblockmenu(); afx_msg void OnBlockcommand(); // afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point); afx_msg void OnPreview(); afx_msg void OnMenuitemfirst(); afx_msg void OnMenuitemfour(); afx_msg void OnMenuitemsecond(); afx_msg void OnMenuitemtree(); afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); afx_msg void OnRenameblock(); afx_msg void OnSelectAll(); afx_msg void OnInstead(); afx_msg void OnBlocfile(); afx_msg void OnBlockbycurdb(); afx_msg void OnUpdatetb(); afx_msg void OnRButtonDown(UINT nFlags, CPoint point); afx_msg void OnClick(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnImportCur(); afx_msg void OnUpdateMenuitemfirst(CCmdUI *pCmdUI); afx_msg void OnUpdateMenuitemsecond(CCmdUI *pCmdUI); afx_msg void OnUpdateMenuitemtree(CCmdUI *pCmdUI); afx_msg void OnUpdateMenuitemfour(CCmdUI *pCmdUI); //}}AFX_MSG DECLARE_MESSAGE_MAP() public: LRESULT OnMouseLeave(WPARAM wParam, LPARAM lParam); AcEdBlockDrag *m_Listdrag; afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu); }; #endif