overview.hlp (Table of Contents; Topic list)
About Static Controls (1.2)
Using Section  Message Group                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
                           About Static Controls
 
This topic describes how to use static control windows in your applications.
You should already be familiar with the following topics:
 
    Messages and message queues
    MS OS/2 Resource Compiler
 
Static controls are simple text fields, bitmaps, or icons that can be used
to label, enclose, or separate other control windows. Static controls do not
accept user input and they do not send notification messages to their
owners.
 
Static controls have style bits that determine whether the control displays
text, draws a simple box containing text, displays an icon or a bitmap, or
shows framed or unframed colored boxes.
 
Static text controls are most commonly used in dialog windows as labels.
Iconic and bitmap static controls can be used to provide graphic objects in
dialog windows. One advantage of static controls is that, once created, they
provide labels and graphics and require little attention from an
application.
 
Static controls never accept the keyboard focus. When a static control
receives a WM_SETFOCUS message, or when a user clicks a static control, that
control advances the focus to the next sibling window that is not a static
control. If there are no sibling windows to the static control, the focus is
given to the owner of the static control.
 
 
                                      ♦