Solved

Menu item question....

Posted on 2004-04-01
5
329 Views
Last Modified: 2013-12-27
I created a SDI eVC++4 project where the  View class is devrived from CScrollview.  On my menu the first item I have is "new" instead of "file".  When I go to edit my menu, I don't see "new" as something I can work with (ie I see "edit" and "tools").  How do I get rid of "new"  and bring back my "file" menu item?  What is the purpose of  the "new" item menu?

Thanks,

RABMissouri
0
Comment
Question by:rabmissouri
  • 3
  • 2
5 Comments
 
LVL 23

Expert Comment

by:chensu
ID: 10734414
Create a brand-new application and compare the difference between them.
0
 

Author Comment

by:rabmissouri
ID: 10738177
Chensu...my buddy...the "Micheal Jordon" of programming!   I have already done that and I see what you mean.  So what happened to "file"  and what is the purpose of the menu item "new"?  The basic crux of my interest in this problem lies in the fact that I can't close the program.  If I click the "upper right X" it minimizes the program.  How do I close the program without the  "File" menu item?

Thanks,
RABMissouri
0
 
LVL 23

Expert Comment

by:chensu
ID: 10738382
You are using the MFC document/view architecture. The purpose of the menu item "New" is to create a new document. Are you using a Pocket PC? If not, the X button should send a WM_CLOSE message to your main frame window.
0
 

Author Comment

by:rabmissouri
ID: 10738444
I am using a Pocket PC.  That is my problem.  The X button minimizes the program and without the the "file" menu I have no way to exit the program...only to minumize it.  Can I convert the X button to closing the program?

Thanks,
RABMissouri
0
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 10738552
Smart Minimize button on Pocket PC 2002
http://www.pocketpcdn.com/articles/smartminimize.html

QA: How can I close my application by clicking the smart minimize (X) button?
http://www.pocketpcdn.com/articles/close_app.html
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator (https://www.appcelerator.com/). This article presumes a wor…
A short article about problems I had with the new location API and permissions in Marshmallow

713 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