The following sample applications show how to use the Windows CE classes, and demonstrate some of the differences between MFC for Windows CE and the standard desktop version of MFC. You can find these sample applications in the Wce\Samples\Mfc directory.
Sample | Description |
---|---|
BANNER | Demonstrates how to use the MFC printing classes. |
CBARTEST | Demonstrates how to add a command bar to your application window. |
CHATTER/CHATSRVR | Demonstrates how to use the CCESocket class. |
CHKBOOK | Demonstrates file I/O, CScrollView, and CFormView. |
CMNCTRLS | Demonstrates how to use the CListCtrl, CTreeCtrl, CProgressCtrl, CSliderCtrl, and CSpinButtonCtrl common control classes. |
COLLECT | Demonstrates how to use lists, maps and arrays. |
COLOR | Demonstrates how to use the CColorDialog class. |
CTRLTEST | Demonstrates several techniques for implementing and using custom controls. |
DYNAMENU | Demonstrates how to dynamically modify menus and status bars. |
ETCHA | Demonstrates the basic graphics and windowing functionality of Windows CE, using MFC. |
GENERIC | Demonstrates basic techniques for writing a Windows CE application in MFC. |
HELLO | Simple “Hello World” application. |
HELLOAPP | Demonstrates the few simple steps needed to produce an application. |
HTTP | Demonstrates how to display HTML text in a window. |
MATHS, MATHS1, MATHS2, MATHS3 | Demonstrates how to create ActiveX controls and embed them in an ActiveX container. |
MODELESS | Demonstrates how to use modeless dialog boxes. |
MTGDI | Demonstrates how to share GDI resources between multiple threads. |
NPP | Demonstrates how to create a simple text editing application, similar to Notepad. |
PALETTE | Demonstrates how to use the CPalette class to paint bitmaps. |
PROPDLG | Demonstrates how to use property sheets. |
SMILEY/SMILEYDG | Demonstrates how to use ActiveX controls and containers. |
STASPLIT | Demonstrates how to use static splitter windows. |
WCEDBTST | Demonstrates how to use the four Windows CE database classes. |
The following table shows the samples you can use with each Windows CE-based platform. An X indicates that the platform in the corresponding column supports the sample in the corresponding row.
Sample | H/PC 2.0 | Palm-size PC | H/PC running H/PC Pro Edition software |
---|---|---|---|
BANNER | X | ||
CBARTEST | X | X | X |
CHATSRVR | X | X | X |
CHATTER | X | X | X |
CHKBOOK | X | X | X |
CMNCTRLS | X | X | X |
COLLECT | X | X | X |
COLOR | X | ||
CTRLTEST | X | X | X |
DYNAMENU | X | X | X |
ETCHA | X | X | X |
GENERIC | X | X | X |
HELLO | X | X | X |
HELLOAPP | X | X | X |
HTTP | X | X | |
MATHS | X | X | |
MATHS1 | X | X | |
MATHS2 | X | X | |
MATHS3 | X | X | |
MODELESS | X | X | X |
MTGDI | X | X | X |
NPP | X | X | X |
PALETTE | X | X | |
PROPDLG | X | X | X |
SMILEY | X | X | |
SMILEYDG | X | X | |
STASPLIT | X | X | X |
WCEDBTST | X | X | X |
The following table shows the processors you can use with each Windows CE-based platform.
Windows CE Platform | Processor supported |
---|---|
H/PC, version 2.0 | MIPS, SH3, x86em |
H/PC running H/PC Pro Edition software | MIPS, SH3, SH4, ARM, x86em |
Palm-size PC | MIPS, SH3, x86em |