Microsoft Windows CE 3.0  

Creating Controls

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This section explains how to add window controls, common controls, and Windows CE–specific controls to windows and dialog boxes. It also explains how to handle control notification messages. The window controls that are discussed here include buttons, combo boxes, edit controls, list boxes, scroll bars, and static controls.

A controlis a child window that an application uses in conjunction with another window to perform I/O tasks. Windows CE defines two basic kinds of controls: window controlsand common controls. Window controls send WM_COMMAND messages. Common controls generally send WM_NOTIFY messages, although a few controls send WM_COMMAND messages.

Windows CE also supports two Windows CE–specific controls: an HTML viewer controland a Rich Ink control. These controls are neither window controls nor common controls. The HTML viewer control provides a simple interface for rendering HTML text, displaying embedded images, and notifying the application of user events. The Rich Ink control enables a user to write and draw on a touch-sensitive screen by using a pointing device.

Controls are placed most often within dialog boxes, but they also can be placed directly on the surface of the client area of a normal window. Each control has attributes that affect its appearance and behavior. When you create a control, you can apply one or more styles to the control. For a complete listing of supported Windows CE control styles, see Window and Control Styles.



 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.