⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xsockclientppg.cpp

📁 基于组态开发的VC源码
💻 CPP
字号:
/////////////////////////////////////////////////////////////////////////////
//	Author				:	Bala Murali
//	XSockClientPpg.cpp	:	Implementation of the CXSockClientPropPage property page class.
//	Creation Date		:	03/09/2000
//	Version				:	Initial Release
/////////////////////////////////////////////////////////////////////////////


#include "stdafx.h"
#include "XSockClient.h"
#include "XSockClientPpg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


IMPLEMENT_DYNCREATE(CXSockClientPropPage, COlePropertyPage)


/////////////////////////////////////////////////////////////////////////////
// Message map

BEGIN_MESSAGE_MAP(CXSockClientPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CXSockClientPropPage)
	// NOTE - ClassWizard will add and remove message map entries
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// Initialize class factory and guid

IMPLEMENT_OLECREATE_EX(CXSockClientPropPage, "XSOCKCLIENT.XSockClientPropPage.1",
	0x2328f295, 0xdd85, 0x11d3, 0xb4, 0xaf, 0, 0xc0, 0x4f, 0x2b, 0x30, 0xe)


/////////////////////////////////////////////////////////////////////////////
// CXSockClientPropPage::CXSockClientPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CXSockClientPropPage

BOOL CXSockClientPropPage::CXSockClientPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_XSOCKCLIENT_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CXSockClientPropPage::CXSockClientPropPage - Constructor

CXSockClientPropPage::CXSockClientPropPage() :
	COlePropertyPage(IDD, IDS_XSOCKCLIENT_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(CXSockClientPropPage)
	m_Address = _T("");
	m_Port = 0;
	m_bNullTerminate = FALSE;
	m_ReceiveBufferCount = 0;
	//}}AFX_DATA_INIT
}


/////////////////////////////////////////////////////////////////////////////
// CXSockClientPropPage::DoDataExchange - Moves data between page and properties

void CXSockClientPropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CXSockClientPropPage)
	DDP_Text(pDX, IDC_ADDRESS, m_Address, _T("LocalAddress") );
	DDX_Text(pDX, IDC_ADDRESS, m_Address);
	DDP_Text(pDX, IDC_PORT, m_Port, _T("LocalPort") );
	DDX_Text(pDX, IDC_PORT, m_Port);
	DDP_Check(pDX, IDC_NULLTERMINATE, m_bNullTerminate, _T("NullTerminate") );
	DDX_Check(pDX, IDC_NULLTERMINATE, m_bNullTerminate);
	DDP_Text(pDX, IDC_RECEIVEBUFFERCOUNT, m_ReceiveBufferCount, _T("ReceiveBufferCount") );
	DDX_Text(pDX, IDC_RECEIVEBUFFERCOUNT, m_ReceiveBufferCount);
	DDV_MinMaxLong(pDX, m_ReceiveBufferCount, 1, 8192);
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// CXSockClientPropPage message handlers

⌨️ 快捷键说明

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