Thread overview
MenuItem
Apr 07, 2002
Phill
Apr 07, 2002
Jan Knepper
Apr 09, 2002
Phill
April 07, 2002
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


April 07, 2002
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

April 09, 2002
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
>