AcToolBar.h
上传用户:rundaa
上传日期:2009-05-24
资源大小:44k
文件大小:1k
源码类别:

CAD

开发平台:

Visual C++

  1. //-----------------------------------------------------------------------------
  2. #ifndef _ACTOOLBAR_H_
  3. #define _ACTOOLBAR_H_
  4. //-----------------------------------------------------------------------------
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. //-----------------------------------------------------------------------------
  9. class CAcToolBar : public CToolBar {
  10. DECLARE_DYNAMIC (CAcToolBar)
  11. CWnd *mpOwner ;
  12. public:
  13. CAcToolBar () ;
  14. public:
  15. //{{AFX_VIRTUAL(CAcToolBar)
  16. //}}AFX_VIRTUAL
  17. public:
  18. virtual ~CAcToolBar () ;
  19. BOOL Create (CWnd *pParentWnd, CWnd *pOwnerWnd =NULL,
  20. DWORD dwStyle =WS_CHILD | WS_VISIBLE | CBRS_SIZE_DYNAMIC | CBRS_FLYBY | CBRS_TOP | CBRS_TOOLTIPS | TBSTYLE_FLAT,
  21. UINT nID =AFX_IDW_TOOLBAR
  22. ) ;
  23. protected:
  24. //{{AFX_MSG(CAcToolBar)
  25. //}}AFX_MSG
  26. afx_msg void OnUpdateToolBar (CCmdUI *pCmdUI) ; //----- See TN031
  27. DECLARE_MESSAGE_MAP ()
  28. } ;
  29. //-----------------------------------------------------------------------------
  30. CAcToolBar *CreateToolBar (UINT nID, CWnd *pOwner, LPCSTR pszTitle =NULL) ;
  31. #endif //----- _ACTOOLBAR_H_