Solved

how to create a window with a menu

Posted on 1998-10-26
3
199 Views
Last Modified: 2013-11-20
How to create a window with a menu?
This compiles, but gives an error when it runs:

Create(NULL,"PROGRAM",WS_OVERLAPPEDWINDOW,NULL,"MENUNAME");
0
Comment
Question by:amp2112
  • 2
3 Comments
 

Accepted Solution

by:
rakeshkalra earned 100 total points
ID: 1323876
Use

if(!Create( NULL, "PROGRAM", WS_OVERLAPPEDWINDOW, CFrameWnd::rectDefault, NULL, MAKEINTRESOURCE(ID_MYMENU)))
{
  // handle error
}

where ID_MYMENU is the ID of the menu built in the resourse editor.

0
 

Author Comment

by:amp2112
ID: 1323877
Adjusted points to 100
0
 

Author Comment

by:amp2112
ID: 1323878
Thanks for the prompt answer. It worked great! :)

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C++ BOOL WINAPI ReadFile fails on windows 10 when reading from USB cable 9 371
notReplace  challenge 53 115
method notes when mouse over in eclipse 5 82
Thin secure Windows 10 5 73
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…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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 tutorial demonstrates a quick way of adding group price to multiple Magento products.

943 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

15 Experts available now in Live!

Get 1:1 Help Now