Visual C++ and MFC Fundamentals Chapter 12: Dialog-Based Windows
System Menu = True
Minimize Box = False
Maximize Box = False
Only the Close button is
available
BS_BORDER: The borders of a control allow you and the user to “physically” locate it
on the screen. This can be done by adding the WS_BORDER to a control. For a dialog
box, the type of border used on the object is controlled by the Border combo box
WS_THICKFRAME: Based on the Microsoft Windows standards and suggestions, a
dialog box usually uses constant dimensions. This means that the user should not change
its width and/or height. If you want to give the user the ability to resize a dialog box,
change its Border value to Resizing. With this type of object, the user can position the
mouse on of its borders or corners, click, hold down the mouse and drag in the desired
direction to change its dimensions:
In the resource file, this can also be done by creating the dialog box with the
WS_THICKFRAME style:
IDD_SCHOOL_SURVEY DIALOGEX 0, 0, 340, 268
STYLE WS_CAPTION | WS_SYSMENU | WS_POPUP | WS_THICKFRAME
CAPTION “School Survey – For Teachers Only”
A Thin value gives a thin border to the dialog box.
WS_POPUP: A window is referred to as popup if it can be displayed on the screen. That
is, if it can be "physically" located. To create a popup dialog box, at design time, select
Popup from the Style combo box. In a resource file, this can be done by adding the
WS_POPUP style:
IDD_SCHOOL_SURVEY DIALOGEX 0, 0, 340, 268
STYLE WS_CAPTION | WS_SYSMENU | WS_POPUP
CAPTION “School Survey – For Teachers Only”