HELLO

This HELLO sample is the classic "Hello, World" application. HELLO displays a menu and an About box, with the text, "Hello, WCE!" 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, WCE!" 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.

To build the HELLO sample, follow the procedure described in Building the Sample Applications, selecting one or more of the following project configurations.