HELLO

This HELLO sample is the classic "Hello, World" application. HELLO displays a menu and an About box, with the text, “Hello, Windows CE!” centered in the application window.

Like any application written using MFC, HELLO has a CWinApp-derived class. This application class provides an implementation of InitInstance, which constructs a frame window object (of the application specific CMainWindow class), then calls the window’s ShowWindow and UpdateWindow functions.

“Hello, Windows CE!” is displayed in response to the WM_PAINT message, by specifying a message map entry, ON_WM_PAINT, for CMainWindow and by implementing the OnPaint handler.

This sample demonstrates the following keywords:

CDC::DrawText

CDC::SetBkMode

CDC::SetTextColor

CDialog::DoModal

CFrameWnd::AddAdornments

CFrameWnd::LoadFrame

CString::LoadString

CWnd::GetClientRect

CWnd::ShowWindow

CWnd::UpdateWindow

GetSysColor

You can find the HELLO project files in the Wce\Samples\Mfc\HELLO directory.

For information on the Windows CE platforms that support this sample, see MFC for Windows CE Samples.