Solved

how to create a window with a menu

Posted on 1998-10-26
3
193 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
Comment Utility
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
Comment Utility
Adjusted points to 100
0
 

Author Comment

by:amp2112
Comment Utility
Thanks for the prompt answer. It worked great! :)

0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Adapt this command to show who installed 29 102
wait notify demo infinite loop 3 79
pre4 challenge 19 87
EvenOdd challenge 10 81
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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 gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 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

12 Experts available now in Live!

Get 1:1 Help Now