MFC

MFC for WinCE不支持的类

Posted by Kerwen Blog on June 3, 2015

虽然使用evc开发wince下的应用程序和使用vc开发PC上的程序有很大的相似性,但是一定要小心它们不同的地方,否则它们就会随时跳出来给你制造麻烦。从MFC来说,虽然wince也支持MFC,但是它的支持并不完整,这个不完整包含2方面的内容:1.不是所有PC上支持的MFC类在wince上都支持;2.wince支持的类并不一定包含了所有PC上MFC对应类所具有的功能和特性。 从第一点来说,wince就不支持以下的类:

1.Common Dialog Boxes

</strong>CFontDialog CPageSetupDialog
Common Controls
CAnimateCtrl CHotKeyCtrl
CCheckListBox CMiniFrameWnd
CComboBoxEx CToolTipCtrl
CDragListBox

2.DAO

CDaoDatabase CDaoRecordset
CDaoException CDaoRecordView
CDaoFieldExchange CDaoTableDef
CDaoQueryDef CDaoWorkspace

3.Internet

CFtpConnection CHtmlView
CFtpFileFind CHttpFilter
CGopherConnection CHttpFilterContext
CGopherFile CHttpServer
CGopherFileFind CHttpServerContext
CGopherLocator CIPAddressCtrl
CHtmlStream

4.MDI

CMDIChildWnd CMultiDocTemplate
CMDIFrameWnd

5.ODBC

CDatabase CFieldExchange
CDBException CRecordset
CDBVariant CRecordView

6.OLE

CAsyncMonikerFile COleDialog
CCachedDataPathProperty COleDocObjectItem
CDataPathProperty COleDocument
CDocItem COleDropSource
CDocObjectServer COleDropTarget
CDocObjectServerItem COleInsertDialog
CMonikerFile COleIPFrameWnd
COleBusyDialog COleLinkingDoc
COleChangeIconDialog COleLinksDialog
COleChangeSourceDialog COleMessageFilter
COleClientItem COlePasteSpecialDialog
COleCmdUI COlePropertiesDialog
COleConvertDialog COleResizeBar
COleDataObject COleServerDoc
COleDataSource COleServerItem
COleDBRecordView COleTemplateServer

7.Rich Edit Control

CRichEditCntrlItem CRichEditDoc
CRichEditCtrl CRichEditView

8.Other Unsupported Classes

CDockState CPictureHolder
CFileFind CSemaphore
CMemoryState CSharedFile
CMetaFileDC