home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 21 / IOPROG_21.ISO / SOFT / DEMOT.ZIP / Src / Include / ToolBarEx.h < prev   
Encoding:
C/C++ Source or Header  |  1998-08-23  |  2.2 KB  |  82 lines

  1. // ToolBarEx.h : header file
  2. // Copyright ⌐1998 - Kirk Stowell
  3. // All Rights Reserved.
  4. //
  5. // Email: kstowel@sprynet.com
  6. // URL:   www.geocities.com/SiliconValley/Haven/8230
  7. //
  8. // You are free to use, modify and distribute this source, as long as
  9. // it is not sold for profit, and this HEADER stays intact. This source is
  10. // supplied "AS-IS", and without WARRANTY OF ANY KIND. The user
  11. // agrees to hold the author(s) blameless from any or all problems that
  12. // may arise from the use or distribution of this code.
  13. //
  14. /////////////////////////////////////////////////////////////////////////////
  15.  
  16. #if !defined(TOOLBAREX_H_INCLUDED)
  17. #define TOOLBAREX_H_INCLUDED
  18.  
  19. #if _MSC_VER >= 1000
  20. #pragma once
  21. #endif // _MSC_VER >= 1000
  22.  
  23. #include "FlatBar.h"
  24.  
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CToolBarEx class
  27.  
  28. class CLASS_EXPORT CToolBarEx : public CFlatToolBar
  29. {
  30.     DECLARE_DYNAMIC(CToolBarEx)
  31.  
  32. // Construction
  33. public:
  34.     CToolBarEx();
  35.  
  36. // Attributes
  37. public:
  38.  
  39. // Operations
  40. public:
  41.  
  42. // Overrides
  43.     // ClassWizard generated virtual function overrides
  44.     //{{AFX_VIRTUAL(CToolBarEx)
  45.     //}}AFX_VIRTUAL
  46.  
  47. // Implementation
  48. public:
  49.     void SetButtonDropDown(int nID);
  50.     void SetImageList(CImageList * pList, DWORD dwStyle);
  51.     CWnd* InsertControl(CRuntimeClass* pClass, CString strTitle, CRect& pRect, UINT nID, DWORD dwStyle );
  52.     void DrawNoGripper() { m_bNoGripper = true; }
  53.     virtual ~CToolBarEx();
  54.  
  55. protected:
  56.     void DrawBorders(CDC* pDC, CRect& rect);
  57.     void EraseNonClient(BOOL);
  58.     void DrawGripper(CDC & dc) const;
  59.  
  60. // Generated message map functions
  61. protected:
  62.     //{{AFX_MSG(CToolBarEx)
  63.     afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
  64.     afx_msg void OnNcPaint();
  65.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  66.     //}}AFX_MSG
  67.     DECLARE_MESSAGE_MAP()
  68.  
  69. protected:
  70.     CObList* m_pControls;
  71.     CFont m_font;
  72.     bool m_bNoGripper;
  73. };
  74.  
  75. /////////////////////////////////////////////////////////////////////////////
  76.  
  77. //{{AFX_INSERT_LOCATION}}
  78. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  79.  
  80. #endif // !defined(TOOLBAREX_H_INCLUDED)
  81.  
  82.