Solved

Remove menu in SDI.

Posted on 2002-07-27
2
185 Views
Last Modified: 2013-11-20
Hi,

When I create SDI project using Project wizard,

a Menu is created automatically.

So If I compile the code, A Menu always appeares.

But I don't want a menu.

So I remove menu in resource.

Then A program doesn't start.

How can I remove menu???
0
Comment
Question by:jaeb
2 Comments
 
LVL 8

Expert Comment

by:VinExpert
ID: 7183193
Hi,

Leave the menu in resource for now. Go to OnCreate(...) function in MainFrm.cpp. Just before returning form that function, put the following line of code.

SetMenu(NULL);

That should give u the menu less SDI window.

Try it out.
VinExpert
0
 
LVL 1

Accepted Solution

by:
gurly earned 100 total points
ID: 7183233
I'm almost sure this is not the best way to do it, but unless you find another solution, try the following:

In your PreCreateWindow function add this line:
     cs.hMenu = NULL;

0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 35
Generic progress indicator 6 117
Replacement selected text 2 62
modThree challenge 4 91
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

777 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