home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / ole / calcdriv / calcdriv.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  2.1 KB  |  80 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-1998 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.  
  31. // Implementation
  32.     //{{AFX_MSG(CCalcDrivApp)
  33.         // NOTE - the ClassWizard will add and remove member functions here.
  34.         //    DO NOT EDIT what you see in these blocks of generated code !
  35.     //}}AFX_MSG
  36.     DECLARE_MESSAGE_MAP()
  37. };
  38.  
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CDriverDlg dialog
  41.  
  42. // Include the type-safe class generated from ClassWizard's "Read Type Library"
  43. //  button to interface with the IDispatch enabled calculator object.
  44. #include "calctype.h"
  45.  
  46. class CDriverDlg : public CDialog
  47. {
  48. // Construction
  49. public:
  50.     CDriverDlg(CWnd* pParent = NULL);   // standard constructor
  51.  
  52. // Dialog Data
  53.     //{{AFX_DATA(CDriverDlg)
  54.     enum { IDD = IDD_CALCDRIV };
  55.     CStatic m_stcOperator;
  56.     CStatic m_stcOperand;
  57.     CStatic m_stcAccum;
  58.     CEdit   m_editExpression;
  59.     //}}AFX_DATA
  60.  
  61.     // an instance of the IDispatch enabled calculator
  62.     CRemoteCalcDlg m_calc;
  63.  
  64. // Implementation
  65. public:
  66.     virtual ~CDriverDlg();
  67.  
  68. protected:
  69.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  70.  
  71.     // Generated message map functions
  72.     //{{AFX_MSG(CDriverDlg)
  73.     afx_msg void OnGo();
  74.     afx_msg void OnSingleStep();
  75.     virtual BOOL OnInitDialog();
  76.     afx_msg void OnRefresh();
  77.     //}}AFX_MSG
  78.     DECLARE_MESSAGE_MAP()
  79. };
  80.