Print Page | Close Window

ALT+MINUS with MTI

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2052
Printed Date: 07 November 2025 at 8:02pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ALT+MINUS with MTI
Posted By: Ark42
Subject: ALT+MINUS with MTI
Date Posted: 30 March 2005 at 12:17pm

If you press ALT+MINUS you get the mdi child menu still, which has the Move option enabled. You can then move the window and mess up the view easily.




Replies:
Posted By: Ark42
Date Posted: 01 April 2005 at 4:47pm

BTW, you can see this problem in the command bars designer even, just press ALT+MINUS and then R for Restore, and the window will be restored, and redraw incorrectly.



Posted By: Oleg
Date Posted: 06 April 2005 at 4:54am

Please use code like:

int CChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
 if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)
  return -1;
 
 CMenu* pMenu = GetSystemMenu(FALSE);

 pMenu->RemoveMenu(SC_RESTORE, MF_BYCOMMAND);
 pMenu->RemoveMenu(SC_MINIMIZE, MF_BYCOMMAND);
 pMenu->RemoveMenu(SC_MAXIMIZE, MF_BYCOMMAND);
 pMenu->RemoveMenu(SC_MOVE, MF_BYCOMMAND);
 pMenu->RemoveMenu(SC_SIZE, MF_BYCOMMAND);
 
 return 0;
}



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Ark42
Date Posted: 06 April 2005 at 12:24pm

This isn't much of an issue for me, because almost nobody knows about the ALT+Minus shortcut, but my current application has a menu option to toggle between normal MDI and MTI with tab groups.  It works very nicely, I just had to go remove some of the window styles when switching to MTI, just like would be removed when the windows are added normally.
If I make this change though, the windows won't have the normal ALT+Minus menu if you click on the control box when in normal MDI mode.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net