home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
msdn_vcb
/
samples
/
vc98
/
atl
/
connect
/
mdrive
/
drivedlg.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-03-26
|
2KB
|
64 lines
// DriveDlg.h : header file
//
// This is a part of the Active Template Library.
// Copyright (C) 1996-1998 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Active Template Library Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Active Template Library product.
/////////////////////////////////////////////////////////////////////////////
// CMDriveDlg dialog
const int nMaxThreads = 10;
class CMDriveDlg : public CDialog
{
// Construction
public:
CMDriveDlg(CWnd* pParent = NULL); // standard constructor
~CMDriveDlg() { delete [] m_arrAdvise;}
// Dialog Data
//{{AFX_DATA(CMDriveDlg)
enum { IDD = IDD_MDRIVE_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMDriveDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
CComPtr<IRandom> pRandom;
long m_arrID[nMaxThreads];
// int m_nThreadCnt;
DWORD *m_arrAdvise;
int m_nMaxAdvises;
int m_nAdviseCnt;
BOOL Unadvise();
BOOL Stop();
// Generated message map functions
//{{AFX_MSG(CMDriveDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnStart();
afx_msg void OnStop();
afx_msg void OnStopAll();
virtual void OnCancel();
virtual void OnOK();
afx_msg void OnAdvise();
afx_msg void OnUnadvise();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};