INF: Button Styles May Not Be Combined

ID Number: Q76933

3.00

WINDOWS

docerr

Summary:

Resource script statements are documented in Chapter 8 of the

"Microsoft Windows Software Development Kit Reference Volume 2." This

chapter includes a discussion of button controls and the following

statement on page 8-24:

In addition to these styles, the style field may contain any

combination (or none) of the BUTTON-class styles described in Table

8.3, "Control Styles." Styles can be combined using the bitwise OR

operator.

This statement, which is repeated a number of times throughout the

chapter, is incorrect; button styles cannot be combined.

More Information:

The button style identifiers (BS_*) are defined in the WINDOWS.H file

as consecutive integers, not individual bits. If two button styles are

combined and the combination creates a legal button style, the button

will be created with that style. However, if two button styles are

combined and the combination does not create a legal button style, the

button will be created, but will not be painted on the screen.

Microsoft has confirmed this to be an error in version 3.0 of the

Windows Software Development Kit (SDK) documentation.