Disabling the System Menu's Close Button |
Post Reply |
Author | |
71SoCal
Newbie Joined: 15 April 2008 Location: United States Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 24 June 2008 at 12:37pm |
My application sometimes needs to disable the mainframe's close button. Before using CodeJock, it worked correctly with the following code:
CMenu* pMenu = GetSystemMenu(bOn);
if (!bOn)
{
pMenu->ModifyMenu(SC_CLOSE, MF_BYCOMMAND | MF_GRAYED);
}
Now that I've added the CodeJock skinning and command bar stuff, the code still runs, but the close button remains enabled.
I'm guessing that I need to make a different call into the CXTPMDIFrameWnd class, but I'm not sure what.
Any help would be appreciated.
Thanks,
Mike
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |