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

  1. // DriveDlg.h : header file
  2. //
  3.  
  4. /////////////////////////////////////////////////////////////////////////////
  5. // CMDriveDlg dialog
  6.  
  7. const int nMaxThreads = 10;
  8.  
  9. class CMDriveDlg : public CDialog
  10. {
  11. // Construction
  12. public:
  13.     CMDriveDlg(CWnd* pParent = NULL);   // standard constructor
  14.     ~CMDriveDlg() { delete [] m_arrAdvise;}
  15.  
  16. // Dialog Data
  17.     //{{AFX_DATA(CMDriveDlg)
  18.     enum { IDD = IDD_MDRIVE_DIALOG };
  19.         // NOTE: the ClassWizard will add data members here
  20.     //}}AFX_DATA
  21.  
  22.     // ClassWizard generated virtual function overrides
  23.     //{{AFX_VIRTUAL(CMDriveDlg)
  24.     protected:
  25.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  26.     //}}AFX_VIRTUAL
  27.  
  28. // Implementation
  29. protected:
  30.     HICON m_hIcon;
  31.     IRandomPtr pRandom;
  32.     long m_arrID[nMaxThreads];
  33. //  int m_nThreadCnt;
  34.     DWORD *m_arrAdvise;
  35.     int m_nMaxAdvises;
  36.     int m_nAdviseCnt;
  37.     BOOL Unadvise();
  38.     BOOL Stop();
  39.  
  40.     // Generated message map functions
  41.     //{{AFX_MSG(CMDriveDlg)
  42.     virtual BOOL OnInitDialog();
  43.     afx_msg void OnPaint();
  44.     afx_msg HCURSOR OnQueryDragIcon();
  45.     afx_msg void OnStart();
  46.     afx_msg void OnStop();
  47.     afx_msg void OnStopAll();
  48.     virtual void OnCancel();
  49.     virtual void OnOK();
  50.     afx_msg void OnAdvise();
  51.     afx_msg void OnUnadvise();
  52.     //}}AFX_MSG
  53.     DECLARE_MESSAGE_MAP()
  54. };
  55.