PRB: Dialog Editor Does Not Retain Unsupported Styles

ID Number: Q74264

3.00

WINDOWS

Summary:

SYMPTOM

The Windows 3.0 Dialog Editor does not retain control/dialog styles

that it does not support.

RESOLUTION

The styles in question must be manually added to the dialog script

before using the resource compiler to compile the resource script.

More Information:

Any style that cannot be explicitly set in the Dialog Editor Styles

dialog box will not be present in the script file generated by the the

Dialog Editor. For example, the edit control style, ES_OEMCONVERT is

not available in the Dialog Editor Styles dialog box. If this style is

manually added to the dialog script, compiled, and then loaded into

the Dialog Editor, the ES_OEMCONVERT style will be removed.

Any styles that are not supported by the Dialog Editor must be

manually added to the dialog script. To modify the dialog script, use

a text editor to combine the desired styles using the bitwise OR

operator("|"). This modified script should then be included into the

application's resource script. If the application's .RES file is later

loaded into the Dialog Editor, the unsupported styles will be removed

and will need to be added again as described above.

The following is a list of styles that are known not to be supported

by the Dialog Editor:

Style

-----

CBS_OEMCONVERT

ES_OEMCONVERT

SBS_BOTTOMALIGN

SBS_LEFTALIGN

SBS_RIGHTALIGN

SBS_SIZEBOX

SBS_SIZEBOXBOTTOMRIGHTALIGN

SBS_SIZEBOXTOPLEFTALIGN

SBS_TOPALIGN

SS_LEFTNOWORDWRAP

SS_NOPREFIX

SS_USERITEM

In addition to the above control styles, any menu definitions added to

the dialog script via the MENU resource statement will be deleted by

the Dialog Editor.