When and how should I add a toolbar and status window to an MDI application, without a mdi client window that overlaps the toolbar and statusbar?
I tried to create both windows before and after the mdi client is made, but the mdi client is either below or above both windows.. It should fit perfectly like in wordpad or something.
Thomas
there is no automatic way - you have to move and size the MDI
client between the toolbar and the status bar window.
Best way is during WM_SIZE
C-like example:
dwClientWidth = dwLParam & 0xFFFF ;
dwClientHeight = dwLParam >> 16 ;
dwStatusH = SizeStatusbar (dwLParam) ;
dwToolH = SizeToolbar (dwLParam) ;
MoveWindow (hwndClient, 0, dwToolH, dwClientWidth, dwClientHeight - dwStatusH - dwToolH, TRUE) ;
[\code]
This message was edited by beaster, on 4/25/2001 12:11:28 PM
I hoped there would be an automatic method but this works fine. Thanks,
Thomas