Microsoft KB Archive/74334

{|
 * width="100%"|

INFO: Dialog Box Frame Styles

 * }

Q74334

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK)
 * Microsoft Windows Software Development Kit (SDK) versions 3.0, 3.1

-

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.

Additional query words:

Keywords : kbDlg kbOSWinNT kbOSWin2000 kbSDKWin32 kbGrpDSUser kbOSWin

Issue type : kbinfo

Technology : kbWin32SDKSearch kbAudDeveloper kbWin3xSearch kbSDKSearch kbWin32sSearch kbWinSDKSearch kbWinSDK300 kbWinSDK310