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

📄 usbulkppg.cpp

📁 USB通讯控件,Bulk通讯方式,可以直接从USB设备中读取数据保存为文件,或者把文件发送给USB设备,用于三星2410相关开发.
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -