?
Solved

Deleting commands(items) from a system menu..

Posted on 1999-12-22
2
Medium Priority
?
193 Views
Last Modified: 2013-11-20
My MFC dialog based application has a system menu that I added using the dialog resource editor. I need to either delete or disable the maximize command from this system menu.
How can I do this?
0
Comment
Question by:cMan
2 Comments
 
LVL 3

Accepted Solution

by:
SuperMario earned 600 total points
ID: 2302040
You'll have to put this code in the InitDialog() function of your dialog class.

You also need to find the ID resource for the Minimize funtion and replace minimizeID with it.

CMenu *sysMenu = GetSystemMenu(FALSE);
sysMenu->EnableMenuItem(minimizeID, MF_GRAYED);
0
 

Author Comment

by:cMan
ID: 2302175
Thank you..
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question