ipc_msgserverdlg.h

来自「EVC编写的WINCE下进程通讯程序服务器端」· C头文件 代码 · 共 60 行

H
60
字号
// IPC_MSGServerDlg.h : header file
//

#if !defined(AFX_IPC_MSGSERVERDLG_H__051D863E_CD8B_4416_A417_BE2503DFCFD7__INCLUDED_)
#define AFX_IPC_MSGSERVERDLG_H__051D863E_CD8B_4416_A417_BE2503DFCFD7__INCLUDED_

#include "IPCServer.h"	// Added by ClassView
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

/////////////////////////////////////////////////////////////////////////////
// CIPC_MSGServerDlg dialog

class CIPC_MSGServerDlg : public CDialog
{
// Construction
public:
	HWND m_ClientWnd;  //存储客户端窗口句柄
	CIPC_MSGServerDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CIPC_MSGServerDlg)
	enum { IDD = IDD_IPC_MSGSERVER_DIALOG };
	CString	m_SessionName;
	CString	m_SendData;
	CString	m_RecvData;
	CString	m_Status;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CIPC_MSGServerDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CIPC_MSGServerDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnBtnopen();
	afx_msg void OnBtnclose();
	afx_msg void OnBtnsenddata();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	static void CALLBACK OnServerDataArrive(CWnd* parentWnd, LPVOID pData, DWORD bufLen, HWND hWnd);
	static void CALLBACK OnServerDisConnected(CWnd* parentWnd, HWND hWnd);
	static void CALLBACK OnServerConnected(CWnd* parentWnd, HWND hWnd);
	CIPCServer m_IPCServer;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_IPC_MSGSERVERDLG_H__051D863E_CD8B_4416_A417_BE2503DFCFD7__INCLUDED_)

⌨️ 快捷键说明

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