home *** CD-ROM | disk | FTP | other *** search
/ Mastering Microsoft Visual C++ 4 (2nd Edition) / VisualC4.ISO / minidrw7 / minidraw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-30  |  2.6 KB  |  81 lines

  1. // MiniDraw.h : main header file for the MINIDRAW application
  2. //
  3.  
  4. #ifndef __AFXWIN_H__
  5.    #error include 'stdafx.h' before including this file for PCH
  6. #endif
  7.  
  8. #include "resource.h"       // main symbols
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CMiniDrawApp:
  12. // See MiniDraw.cpp for the implementation of this class
  13. //
  14.  
  15. class CMiniDrawApp : public CWinApp
  16. {
  17. public:
  18.    COLORREF m_CurrentColor;
  19.    int m_CurrentThickness;
  20.    UINT m_CurrentTool;
  21.    UINT m_IdxColorCmd;
  22.  
  23. public:
  24.    CMiniDrawApp();
  25.  
  26. // Overrides
  27.    // ClassWizard generated virtual function overrides
  28.    //{{AFX_VIRTUAL(CMiniDrawApp)
  29.    public:
  30.    virtual BOOL InitInstance();
  31.    //}}AFX_VIRTUAL
  32.  
  33. // Implementation
  34.  
  35.    //{{AFX_MSG(CMiniDrawApp)
  36.    afx_msg void OnAppAbout();
  37.    afx_msg void OnLineDouble();
  38.    afx_msg void OnUpdateLineDouble(CCmdUI* pCmdUI);
  39.    afx_msg void OnLineSingle();
  40.    afx_msg void OnUpdateLineSingle(CCmdUI* pCmdUI);
  41.    afx_msg void OnLineTriple();
  42.    afx_msg void OnUpdateLineTriple(CCmdUI* pCmdUI);
  43.    afx_msg void OnToolsCircle();
  44.    afx_msg void OnUpdateToolsCircle(CCmdUI* pCmdUI);
  45.    afx_msg void OnToolsCirclefill();
  46.    afx_msg void OnUpdateToolsCirclefill(CCmdUI* pCmdUI);
  47.    afx_msg void OnToolsLine();
  48.    afx_msg void OnUpdateToolsLine(CCmdUI* pCmdUI);
  49.    afx_msg void OnToolsRectangle();
  50.    afx_msg void OnUpdateToolsRectangle(CCmdUI* pCmdUI);
  51.    afx_msg void OnToolsRectfill();
  52.    afx_msg void OnUpdateToolsRectfill(CCmdUI* pCmdUI);
  53.    afx_msg void OnToolsRectround();
  54.    afx_msg void OnUpdateToolsRectround(CCmdUI* pCmdUI);
  55.    afx_msg void OnToolsRectroundfill();
  56.    afx_msg void OnUpdateToolsRectroundfill(CCmdUI* pCmdUI);
  57.    afx_msg void OnColorBlack();
  58.    afx_msg void OnUpdateColorBlack(CCmdUI* pCmdUI);
  59.    afx_msg void OnColorBlue();
  60.    afx_msg void OnUpdateColorBlue(CCmdUI* pCmdUI);
  61.    afx_msg void OnColorCustom();
  62.    afx_msg void OnUpdateColorCustom(CCmdUI* pCmdUI);
  63.    afx_msg void OnColorCyan();
  64.    afx_msg void OnUpdateColorCyan(CCmdUI* pCmdUI);
  65.    afx_msg void OnColorGreen();
  66.    afx_msg void OnUpdateColorGreen(CCmdUI* pCmdUI);
  67.    afx_msg void OnColorMagenta();
  68.    afx_msg void OnUpdateColorMagenta(CCmdUI* pCmdUI);
  69.    afx_msg void OnColorRed();
  70.    afx_msg void OnUpdateColorRed(CCmdUI* pCmdUI);
  71.    afx_msg void OnColorWhite();
  72.    afx_msg void OnUpdateColorWhite(CCmdUI* pCmdUI);
  73.    afx_msg void OnColorYellow();
  74.    afx_msg void OnUpdateColorYellow(CCmdUI* pCmdUI);
  75.    //}}AFX_MSG
  76.    DECLARE_MESSAGE_MAP()
  77. };
  78.  
  79.  
  80. /////////////////////////////////////////////////////////////////////////////
  81.