Solved

Remove menu in SDI.

Posted on 2002-07-27
2
182 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
This video discusses moving either the default database or any database to a new volume.

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now