-
EnableMenuItem
I have a quick question concerning Menus. I have a small app that uses pull-down menus, and I ned to be able to "turn off" or grey out the menu items that I dont want a user to have. I am trying to use the function:
EnableMenuItem(HMENU hMenu, UINT uIDEnableItem, UINT uEnable);
The problem is i dont know how to get the Handle of hMenu. I have tried just giving it the resource number, but that didnt work. What am I doing wrong??
- Brice
-
I got it....i was doing some reading on here and I came across a post that had some code that worked for what I needed.
I just used GetMenu(HWND) to get a HMENU handle to the menu I need. Thanks anyways.
- Brice
:D :D