home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / cmnctrl1 / toolpage.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.8 KB  |  73 lines

  1. // ToolPage.h : header file
  2. //
  3.  
  4. // This is a part of the Microsoft Foundation Classes C++ library.
  5. // Copyright (C) 1992-1998 Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to the
  9. // Microsoft Foundation Classes Reference and related
  10. // electronic documentation provided with the library.
  11. // See these sources for detailed information regarding the
  12. // Microsoft Foundation Classes product.
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CToolBarCtrlPage dialog
  16. #ifndef INC_TOOLPAGE_H
  17. #define INC_TOOLPAGE_H
  18.  
  19. #include "toolbar1.h"
  20. #include "toolbar2.h"
  21.  
  22. class CToolBarCtrlPage : public CPropertyPage
  23. {
  24.     DECLARE_DYNCREATE(CToolBarCtrlPage)
  25.  
  26. // Construction
  27. public:
  28.     CToolBarCtrlPage();
  29.     ~CToolBarCtrlPage();
  30.  
  31. // Overrides
  32.     // ClassWizard generated virtual function overrides
  33.     //{{AFX_VIRTUAL(CMyToolBarCtrlPage)
  34.     //}}AFX_VIRTUAL
  35.  
  36. // Attributes
  37. protected:
  38.     CStandardBar    m_StandardBar;
  39.     CPaletteBar     m_PaletteBar;
  40.     CToolTipCtrl    m_ToolTip;
  41. // Dialog Data
  42.     //{{AFX_DATA(CToolBarCtrlPage)
  43.     enum { IDD = IDD_TOOLBARCTRL };
  44.     BOOL    m_bAltDrag;
  45.     //}}AFX_DATA
  46.  
  47.  
  48. // Overrides
  49.     // ClassWizard generate virtual function overrides
  50.     //{{AFX_VIRTUAL(CToolBarCtrlPage)
  51.     protected:
  52.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  53.     virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  54.     //}}AFX_VIRTUAL
  55.  
  56. // Implementation
  57. protected:
  58.     void ChangeCtrlStyle(long lStyle, BOOL bSetStyle);
  59.  
  60.     // Generated message map functions
  61.     //{{AFX_MSG(CToolBarCtrlPage)
  62.     virtual BOOL OnInitDialog();
  63.     afx_msg void OnAltdrag();
  64.     //}}AFX_MSG
  65. #ifdef FWC
  66.     afx_msg void OnToolbarCommand(UINT nID);
  67. #endif
  68.     DECLARE_MESSAGE_MAP()
  69.  
  70. };
  71.  
  72. #endif
  73.