www.pudn.com > OSDemo.rar > D3.h


//{{AFX_INCLUDES() 
 
//}}AFX_INCLUDES 
#if !defined(AFX_D3_H__603D0ED2_D52A_4C9A_8F3F_171C2EDF0BE4__INCLUDED_) 
#define AFX_D3_H__603D0ED2_D52A_4C9A_8F3F_171C2EDF0BE4__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// D3.h : header file 
// 
#include "grid control\ComboGridCtrl.h" 
 
///////////////////////////////////////////////////////////////////////////// 
// CD3 dialog 
 
class CD3 : public CDialog 
{ 
// Construction 
public: 
	void SetData(CGridCtrl &gc,int row,int col,int data); 
 
	int GetData(CGridCtrl &gc,int rows,int col); 
	void EnabeControls(); 
	BOOL OnInitDialog(); 
	CD3(CWnd* pParent = NULL);   // standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CD3) 
	enum { IDD = IDD_D3 }; 
	CButton	m_save_ctrl; 
	CButton	m_load_ctrl; 
	CButton	m_request_ctrl; 
	CEdit	m_out_ctrl; 
	CButton	m_proc_ctrl; 
	CButton	m_setnum_ctrl; 
	CButton	m_remove_ctrl; 
	CButton	m_add_ctrl; 
	CEdit	m_num_ctrl; 
	int		m_resnum; 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CD3) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
    CComboGridCtrl m_GridCtrl,m_avlist,m_reqlist; 
	int m_procnum; 
	// Generated message map functions 
	//{{AFX_MSG(CD3) 
	afx_msg void OnSetNum(); 
	afx_msg void OnAdd(); 
	afx_msg void OnRemove(); 
	afx_msg void OnProc(); 
	afx_msg void OnRequest(); 
	afx_msg void OnSave(); 
	afx_msg void OnLoad(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_D3_H__603D0ED2_D52A_4C9A_8F3F_171C2EDF0BE4__INCLUDED_)