Hello Sample Application

This sample application illustrates part of the functionality of Windows CE for the Palm-size PC. It creates a window and displays “Hello Palm-size PC” in the middle of the window.

To build the Hello sample application, follow the procedure described in Building the Sample Applications. In the procedure, select one of the following project configurations:

After initializing its main window, Hello enters WndProc. The main purpose of WndProc is to respond to the WM_PAINT message. WM_PAINT calls DrawText, which displays the “Hello Palm-size PC” text string in the window.

The Palm-size PC Hello sample application resembles the Hello sample application for an H/PC. However, because a Palm-size PC application should not have the exit or minimize UI, the Hello sample application for a Palm-size PC does not have those functions either.

The Hello sample application uses the following messages:

WM_CLOSE
WM_DESTROY
WM_PAINT

The Hello sample application uses the following APIs and functions:

BeginPaint FindWindow FindWindow
CreateWindow GetClientRect GetClientRect
DefWindowProc GetMessage GetMessage
DestroyWindow GetStockObject GetStockObject
DispatchMessage InitApplication InitApplication
DrawText InitInstance InitInstance
EndPaint PostQuitMessage PostQuitMessage