I'm trying to change the state of a menu item from grayed to enabled with the following statement:
MENU SET STATE hMenuFile, BYCMD 403, %MF_ENABLED
If I put the BYCMD in, I get a syntax error, if I leave it out:
MENU SET STATE hMenuFile, 3, %MF_ENABLED
it compiles, but doesn't seem to do anything. I'm trying to enable the third item on the File menu, which has an id of 403. I'm doing this in the callback procedure for another menu item. hMenuFile is the handle of a popup which is attached to the main menu bar.
MENU SET STATE hMenuFile, BYCMD 403, %MF_ENABLED
If I put the BYCMD in, I get a syntax error, if I leave it out:
MENU SET STATE hMenuFile, 3, %MF_ENABLED
it compiles, but doesn't seem to do anything. I'm trying to enable the third item on the File menu, which has an id of 403. I'm doing this in the callback procedure for another menu item. hMenuFile is the handle of a popup which is attached to the main menu bar.
Comment