www.pudn.com > Switch.rar > SwitchDlg.h


// SwitchDlg.h : header file 
// 
 
#if !defined(AFX_SWITCHDLG_H__31C4E1B1_4EB4_4339_9C35_B3B7B3196D8C__INCLUDED_) 
#define AFX_SWITCHDLG_H__31C4E1B1_4EB4_4339_9C35_B3B7B3196D8C__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
///////////////////////////////////////////////////////////////////////////// 
// CSwitchDlg dialog 
 
class CSwitchDlg : public CDialog 
{ 
// Construction 
public: 
	CSwitchDlg(CWnd* pParent = NULL);	// standard constructor 
	 
	void WritePort(unsigned short port, BYTE bVal); 
	BYTE ReadPort(unsigned short port); 
 
// Dialog Data 
	//{{AFX_DATA(CSwitchDlg) 
	enum { IDD = IDD_SWITCH_DIALOG }; 
	int		m_Channel; 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CSwitchDlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	HICON m_hIcon; 
 
	// Generated message map functions 
	//{{AFX_MSG(CSwitchDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	virtual void OnOK(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_SWITCHDLG_H__31C4E1B1_4EB4_4339_9C35_B3B7B3196D8C__INCLUDED_)