Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - ALT+MINUS with MTI
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ALT+MINUS with MTI

 Post Reply Post Reply
Author
Message
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post Topic: ALT+MINUS with MTI
    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.

Back to Top
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.