How is MFC for Windows CE Different from MFC for Desktop Platforms?

Windows CE is a more compact operating system than the desktop Windows platforms, so it supports a streamlined subset of the standard MFC library. The Windows CE implementation of this subset is designed to be as compatible as possible with standard MFC but there are, inevitably, some differences in some of the classes. MFC for Windows CE also introduces several new classes to support some of the features that are unique to Windows CE.

MFC for Windows CE introduces four new database classes that encapsulate the simple database functionality supported by the Windows CE object store. These classes are CCeDBDatabase, CCeDBRecord, CCeDBProp, and CCeDBEnum. CCeDBEnum is an enumerator for the databases in the object store.

Another new class that's unique to MFC for Windows CE is CCeSocket. Windows CE doesn't inherently support asynchronous socket communication, but the CCeSocket class simulates asynchronous notification for certain socket events. Use this class instead of CAsyncSocket for Windows CE socket applications.

One Windows CE feature that isn't supported on desktop Windows platforms is the command bar. The command bar is a common control that combines the functionality of a menu bar and a tool bar. It also includes the standard Windows Close (X) button and, optionally, the Help (?) button and the OK button. This control is very useful for devices with small displays. MFC for Windows CE supports command bars with nine new functions in the CFrameWnd class.