Dialog box, controls
dialog box with main window's settings
- Demonstration
- Functionality:
- main window
- menu
- File\Settings (accelerator Ctrl+S) - open/close modeless dialog box with main window's settings
- separator (has to be included in menu)
- File\Exit - close application
- accelerators have to be visible in menu items
- only one dialog box could be opened at the same time
- 'Settings' menu item is checked when dialog box is opened
- modeless dialog box ('Tool Window' style has to be set)
- text box titled 'Title' - main window's title
- button named 'Set title' - update window's name
- check box 'Top-most' - disable/enable top-most style for main window
- horizontal scroll bar - transparency level form both main window and dialog box
- transparency range - 0% - 50%
- current level has to be shown in static control next to scroll bar
- 'Close' button - hide dialog box (same as 'X' button)
- Hints:
- CreateDialog()
- GetWindowText(), SetWindowText()
- GetDlgItem(), GetDlgItemText(), SetDlgItemText(), IsDlgButtonChecked(), ...
- SetScrollPos(), SetScrollRange()
- CheckMenuItem()
- Approximate points:
- showing/hiding modeless dialog: 1.5
- menu item check, accelerators: 1.0
- appropriate styles for dialog box's window: 1.0
- updating window's name: 1.5
- enable/disable top-most style: 1.5
- transparency level altering: 3.5