They are just shown normally (text in black). if they are disabled they do nothing when they are clicked.
yes i set the breakpoint in the handler and yes it is called correctly...
it is a mystery!!
Type: Posts; User: fdy
They are just shown normally (text in black). if they are disabled they do nothing when they are clicked.
yes i set the breakpoint in the handler and yes it is called correctly...
it is a mystery!!
Yeah that is exactly what i have used and it does enable/disable the menu items but doesn't show them grayed/dimmed.
i guess if noone else has had the same problem then i just must have done...
Whether they are enabled or not depends on another variable (which changes).
it works perfectly for a normal menu, but for some reason not for the right click context menu... thanks anyway
Thanks Kuphryn for your reply. Yeah it is a context menu-- when you press the right hand side button on the mouse it pops up. i have that much done, but when i call update event handlers to set...
Hi,
I have set up a right click menu (it works), I am able to disable the menu items but they don't show greyed-out.
The way I try to do this is by calling
OnUpdateStart(CCmdUI *pCmdUI){
...
Cheers kuphryn!
The message handler for BN_CLICKED worked:)
Apologies for being off C++ topic
Figured it out. Called the message handler for BN_CLICKED.
Hi,
I'm trying to use radio buttons to enable/disable another control in a dialog box as soon as it is pressed. I know to use
GetDlgItem(IDC_SLIDER_...)->EnableWindow(false);
but don't know...
Hi,
I'm trying to use radio buttons to enable/disable another control in a dialog box as soon as it is pressed. I know to use
GetDlgItem(IDC_SLIDER_...)->EnableWindow(false);
but don't know...