HELLOAPP

HELLOAPP is the minimal Microsoft Foundation Class Library (MFC) sample. It illustrates how few lines of code are required make a window appear on the screen. HELLOAPP is even simpler than the HELLO sample: HELLOAPP does not paint anything in the main window's client area, nor does it have even a message map for the main window. HELLOAPP is nevertheless instructive in that it demonstrates the minimal overhead required for a content-less application, as opposed to, for example, a WinMain type of application developed using the Microsoft Windows® Software Development Kit.

When HELLOAPP runs, it displays the text, "Hello World!" in the task bar, and an empty application window.

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

This sample demonstrates the following keywords:

CFrameWnd::AddAdornments

CFrameWnd::Create

CFrameWnd::rectDefault

CWinApp::InitInstance

CWnd::ShowWindow

CWnd::UpdateWindow

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

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