networkdlg.h

来自「使用HOOPS库开发的一个教学演示工具。」· C头文件 代码 · 共 105 行

H
105
字号
#if !defined(AFX_NETWORKDLG_H__AB816547_2262_4AE8_8D9B_141FB1F3A76B__INCLUDED_)#define AFX_NETWORKDLG_H__AB816547_2262_4AE8_8D9B_141FB1F3A76B__INCLUDED_#if _MSC_VER > 1000#pragma once#endif // _MSC_VER > 1000// NetworkDlg.h : header file//class HNetMgr;enum HProtocolType{	ehHttp,	ehTcpip};enum HConnectionState{	ehOn,	ehOff};/////////////////////////////////////////////////////////////////////////////// CNetworkDlg dialogclass CNetworkDlg : public CDialog{// Constructionpublic:	CNetworkDlg(CWnd* pParent = NULL);   // standard constructor	virtual ~CNetworkDlg();// Dialog Data	//{{AFX_DATA(CNetworkDlg)	enum { IDD = IDD_NETWORKDIALOG };	CListBox	m_listSessions;	int		m_nProtocolType;	CString	m_csTcpipAddress;	CString	m_csServerPort;	CString	m_csSessionName;	CString	m_csSessionPassword;	CString	m_csServerPasswordAdmin;	CString	m_csClientName;	CString	m_csHttpAddress;	CString	m_csServerPasswordAccess;	//}}AFX_DATA// Overrides	// ClassWizard generated virtual function overrides	//{{AFX_VIRTUAL(CNetworkDlg)	protected:	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support	//}}AFX_VIRTUAL// Implementationprotected:	HConnectionState m_ehConnectionStatus;	// Generated message map functions	//{{AFX_MSG(CNetworkDlg)	afx_msg void OnRadioHttp();	afx_msg void OnRadioTcpip();	afx_msg void OnButtonConnect();	afx_msg void OnButtonCreatesession();	afx_msg void OnButtonDeletesession();	afx_msg void OnButtonRefreshsession();	afx_msg void OnButtonJoinsession();	virtual BOOL OnInitDialog();	afx_msg void OnSelchangeListSessions();	afx_msg void OnClose();	//}}AFX_MSG	DECLARE_MESSAGE_MAP()private:	HNetMgr*	m_pHNetMgr;	void switch_tcpip_controls(BOOL bState);	void switch_http_controls(BOOL bState);	void switch_session_controls( BOOL bState );	bool switch_protocol( HProtocolType ehType );	bool switch_connection( HConnectionState ehStatus );	void refresh_sessions_list();	// callbacks	static void hnet_status_notice_function(unsigned int status, void * user_data);public:		HNetMgr* GetHNetMgr(){ return m_pHNetMgr; }};//{{AFX_INSERT_LOCATION}}// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_NETWORKDLG_H__AB816547_2262_4AE8_8D9B_141FB1F3A76B__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?