INF: Dialog Box Frame Styles

ID Number: Q74334

3.00

WINDOWS

Summary:

Dialog boxes can have either the WS_DLGFRAME or the WS_BORDER style.

If a dialog box is created with both of these styles, it will have a

caption bar instead of the expected frame and border. This is because

WS_BORDER | WS_DLGFRAME is equal to WS_CAPTION.

To create a dialog box with a modal dialog frame and a caption, use

DS_MODALFRAME combined with WS_CAPTION.