www.digitalmars.com         C & C++   DMDScript  

c++.idde - MenuItem

reply "Phill" <phillbert pacific.net.au> writes:
Hi there

When adding a MenuItem to a menu, it stays in
the disabled mode, even though I have followed the instructions
in the tutorial.

any help much appreciated.

btw the Digital Mars CD package is fantastic!

Phill
Apr 06 2002
parent reply Jan Knepper <jan smartsoft.cc> writes:
Are you using MFC?
If that is the case you will have to make sure there is an
implementation for the menu ID

    ON_COMMAND ( <your menu id>, <Member function> )

and of course a <Member function>

Jan



Phill wrote:

 Hi there

 When adding a MenuItem to a menu, it stays in
 the disabled mode, even though I have followed the instructions
 in the tutorial.

 any help much appreciated.

 btw the Digital Mars CD package is fantastic!

 Phill
Apr 06 2002
parent "Phill" <phillbert pacific.net.au> writes:
Your right , that was the problem.

For some reason, when I add the "command" while
doing the tutorial files I get an error :

"failed to rename file"

and the "ON_COMMAND" is
not added to the file.

It works fine if I make my own GUI though.

Thanks
        Phill.


Jan Knepper <jan smartsoft.cc> wrote in message
news:3CAFEC05.695CC52D smartsoft.cc...
 Are you using MFC?
 If that is the case you will have to make sure there is an
 implementation for the menu ID

     ON_COMMAND ( <your menu id>, <Member function> )

 and of course a <Member function>

 Jan



 Phill wrote:

 Hi there

 When adding a MenuItem to a menu, it stays in
 the disabled mode, even though I have followed the instructions
 in the tutorial.

 any help much appreciated.

 btw the Digital Mars CD package is fantastic!

 Phill
Apr 09 2002