Link to home
Start Free TrialLog in
Avatar of rabmissouri
rabmissouri

asked on

Menu item question....

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
Avatar of chensu
chensu
Flag of Canada image

Create a brand-new application and compare the difference between them.
Avatar of rabmissouri
rabmissouri

ASKER

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
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.
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
ASKER CERTIFIED SOLUTION
Avatar of chensu
chensu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial