
Checked menu items in a dialog based application
Hi all,
I'm currently programming a dialog based application and want
to add a check mark to some of the menu items in my app.
For example, there is a menu item "log to disk". If enabled
(check mark should be displayed on the left side of the menu
item) disk logging is done...
I tried to do this with the following code
void CERecoDlg::OnUpdateRecognitionmodeOcr(CCmdUI* pCmdUI)
{
pCmdUI->SetCheck(TRUE);
Quote:
}
which is executed when the windows-message UPDATE_COMMAND_UI
arrives for the menu item. Unfortunately, nothing happens
(no check mark is displayed)!!
What am I doing wrong?
Please help!
Thank you...
...Ralf
--
Ralf Specht
Siemens Electrocom GmbH & Co.
Technologieentwicklung (TE1)
Buecklestrasse 5
D-78467 Konstanz, Germany
Phone: +49 7531/86-2603