Krzysztof Mossakowski
Windows Programming
2005 - Tasks
MDI Application
Sample task
Demonstration
Functionality:
The main window:
the menu
New window in parent coordinates (skrót Ctrl+1)
New window in local coordinates (skrót Ctrl+2)
Exit
additional 'Window' menu for child windows:
Cascade (Ctrl+F8)
Tile horizontal (Ctrl+F7)
Tile vertical (Shift+Ctrl+F7)
Close
Close all
standard menu enumerating MDI child windows
MDI client window
background taken from
example07_brick.bmp
cursor IDC_HAND
use mouse to move the background
automatic scrollbars
allow to use standard MDI keyboard shortcuts (m.in. Ctrl+F6, Shift+Ctrl+F6)
MDI child windows
background taken from
example07_brick.bmp
window's title: "YYY X", where YYY is the type and X number of the window
for child window of type "local coordinates"
cursor IDC_HAND
use mouse to move the background
Hints:
WM_MDITILE, WM_MDICASCADE
TranslateMDISysAccel
ClientToScreen, CreatePatternBrush, SetBrushOrgEx