home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / mfccalc / calcdriv / calcdriv.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-03  |  2.2 KB  |  81 lines

  1. // calcdriv.h : main header file for the CALCDRIV application
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #ifndef __AFXWIN_H__
  14.     #error include 'stdafx.h' before including this file for PCH
  15. #endif
  16.  
  17. #include "resource.h"       // main symbols
  18.  
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CCalcDrivApp:
  21. // See calcdriv.cpp for the implementation of this class
  22.  
  23. class CCalcDrivApp : public CWinApp
  24. {
  25. public:
  26.     CCalcDrivApp();
  27.  
  28. // Overrides
  29.     virtual BOOL InitInstance();
  30.     virtual int ExitInstance();
  31.  
  32. // Implementation
  33.     //{{AFX_MSG(CCalcDrivApp)
  34.         // NOTE - the ClassWizard will add and remove member functions here.
  35.         //    DO NOT EDIT what you see in these blocks of generated code !
  36.     //}}AFX_MSG
  37.     DECLARE_MESSAGE_MAP()
  38. };
  39.  
  40. /////////////////////////////////////////////////////////////////////////////
  41. // CDriverDlg dialog
  42.  
  43. // Include the type-safe class generated from ClassWizard's "Read Type Library"
  44. //  button to interface with the IDispatch enabled calculator object.
  45. //#include "calctype.h"
  46.  
  47. class CDriverDlg : public CDialog
  48. {
  49. // Construction
  50. public:
  51.     CDriverDlg(CWnd* pParent = NULL);   // standard constructor
  52.  
  53. // Dialog Data
  54.     //{{AFX_DATA(CDriverDlg)
  55.     enum { IDD = IDD_CALCDRIV };
  56.     CStatic m_stcOperator;
  57.     CStatic m_stcOperand;
  58.     CStatic m_stcAccum;
  59.     CEdit   m_editExpression;
  60.     //}}AFX_DATA
  61.  
  62.     // an instance of the IDispatch enabled calculator
  63.     ICalcDlgPtr m_calc;  
  64.  
  65. // Implementation
  66. public:
  67.     virtual ~CDriverDlg();
  68.  
  69. protected:
  70.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  71.  
  72.     // Generated message map functions
  73.     //{{AFX_MSG(CDriverDlg)
  74.     afx_msg void OnGo();
  75.     afx_msg void OnSingleStep();
  76.     virtual BOOL OnInitDialog();
  77.     afx_msg void OnRefresh();
  78.     //}}AFX_MSG
  79.     DECLARE_MESSAGE_MAP()
  80. };
  81.