Solved

My menuitem is gray!

Posted on 1999-01-07
1
231 Views
Last Modified: 2013-12-26
I just started using Borland C++.
After I created a project, I insert a menuitem and attach it to the function with classexpert, but when I ran it, the menuitem i just added is gray.
I know it's stupid, but can you help me?
0
Comment
Question by:xu092098
1 Comment
 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 50 total points
ID: 1299834
Can be 2 reas0ns for it:
1 Little probably
  MENUITEM "Item", IDC_MYITEM, GRAYED //must delete GRAYED
2. Most probably
  In you main programm must be line as

 EV_COMMAND(IDC_MYITEM,             MyFunction),
..
void WinClass::MyFunction()
{
...
}
Best Regards, Alex

0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

803 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