Dialog and Control Styles

Behind each control and the dialog itself are some associated attributes called “styles.” Styles govern everything from the way a dialog or control appears to the way it behaves. So far, you've just used the default styles.

Summary: Open the Styles dialog box for a selected control.

Double-click the list box to open its Styles dialog box. You can also open the Styles dialog box for the currently selected dialog box or control by pressing ENTER or by selecting the Styles command from the Edit menu.

As you can see from the Styles dialog, style is not a trivial subject. Test Mode gives you a hands-on way of exploring style. For example, turn on the list box's Extended Selection style, and then close its Styles dialog box. Return to Test Mode. A default list box lets you select only one item from its list, but now you can select a range of items from the list box by dragging down the list with the mouse.

Styles are covered further under the Styles command from the Edit menu on page 35, and also in C for Windows, Part 2, “Creating Windows Programs.”