usbulkppg.cpp

来自「USB通讯控件,Bulk通讯方式,可以直接从USB设备中读取数据保存为文件,或者」· C++ 代码 · 共 77 行

CPP
77
字号
// UsbulkPpg.cpp : Implementation of the CUsbulkPropPage property page class.

#include "stdafx.h"
#include "Usbulk.h"
#include "UsbulkPpg.h"

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


IMPLEMENT_DYNCREATE(CUsbulkPropPage, COlePropertyPage)


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

BEGIN_MESSAGE_MAP(CUsbulkPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CUsbulkPropPage)
	// 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(CUsbulkPropPage, "USBULK.UsbulkPropPage.1",
	0xc7254d1f, 0x515, 0x419f, 0x84, 0x73, 0xae, 0x36, 0xc, 0xf7, 0xa7, 0xd4)


/////////////////////////////////////////////////////////////////////////////
// CUsbulkPropPage::CUsbulkPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CUsbulkPropPage

BOOL CUsbulkPropPage::CUsbulkPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_USBULK_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CUsbulkPropPage::CUsbulkPropPage - Constructor

CUsbulkPropPage::CUsbulkPropPage() :
	COlePropertyPage(IDD, IDS_USBULK_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(CUsbulkPropPage)
	// NOTE: ClassWizard will add member initialization here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_INIT
}


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

void CUsbulkPropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CUsbulkPropPage)
	// NOTE: ClassWizard will add DDP, DDX, and DDV calls here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// CUsbulkPropPage message handlers

⌨️ 快捷键说明

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