home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / inproc / ipdrive / ipdrivw.h < prev    next >
C/C++ Source or Header  |  1998-04-02  |  2KB  |  84 lines

  1. // ipdrivw.h : interface of the CDriverView class
  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. class CDriverView : public CFormView
  14. {
  15. protected: // create from serialization only
  16.     CDriverView();
  17.     DECLARE_DYNCREATE(CDriverView)
  18.  
  19. public:
  20.     //{{AFX_DATA(CDriverView)
  21.     enum { IDD = IDD_IPDRIVE_FORM };
  22.     CEdit   m_toValue;
  23.     CComboBox   m_toType;
  24.     CEdit   m_ctrlValue;
  25.     CComboBox   m_ctrlType;
  26.     //}}AFX_DATA
  27.  
  28. // Attributes
  29. public:
  30.     CDriverDoc* GetDocument();
  31.  
  32. // Operations
  33. public:
  34.  
  35. // Overrides
  36.     // ClassWizard generated virtual function overrides
  37.     //{{AFX_VIRTUAL(CDriverView)
  38.     public:
  39.     virtual void OnInitialUpdate();
  40.     protected:
  41.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  42.     //}}AFX_VIRTUAL
  43.  
  44. // Implementation
  45. public:
  46.     virtual ~CDriverView();
  47. #ifdef _DEBUG
  48.     virtual void AssertValid() const;
  49.     virtual void Dump(CDumpContext& dc) const;
  50. #endif
  51.  
  52. protected:
  53.     // formatting strings for the dialog
  54.     CString m_strCurrentCount;
  55.     CString m_strLastType;
  56.     CString m_strLastValue;
  57.     BOOL m_bInitialized;
  58.  
  59.     _variant_t GetFromVariant();
  60.     _variant_t GetToVariant();
  61.  
  62.     void UpdateCurrentCount();
  63.     void UpdateToNothing();
  64.     void UpdateCurrentVariant(const _variant_t& va);
  65.  
  66. // Generated message map functions
  67. protected:
  68.     //{{AFX_MSG(CDriverView)
  69.     afx_msg void OnLookup();
  70.     afx_msg void OnRemove();
  71.     afx_msg void OnAdd();
  72.     afx_msg void OnButton1();
  73.     afx_msg void OnButton2();
  74.     //}}AFX_MSG
  75.     DECLARE_MESSAGE_MAP()
  76. };
  77.  
  78. #ifndef _DEBUG  // debug version in ipdrivw.cpp
  79. inline CDriverDoc* CDriverView::GetDocument()
  80.    { return (CDriverDoc*)m_pDocument; }
  81. #endif
  82.  
  83. /////////////////////////////////////////////////////////////////////////////
  84.