Checked menu items in a dialog based application 
Author Message
 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



Mon, 19 Mar 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. How to check a menu item in a dialog based application

2. Checking Menu Items in Dialog Based Application

3. Q: Set Check Mark in Menu Item In Based Dialog Application

4. Checking menu items in dialog based app.

5. Enabling/Disabling Menu items for a menu on a dialog application

6. Dialog app - checking a menu item ??

7. Updating menu items in dialog-based apps: Solution

8. Updating dialog based application menu status

9. Menu in dialog based application.

10. Dialog Based Application & Menu

11. Enable menu-items in a dialog application

12. Menu items in dialog applications

 

 
Powered by phpBB® Forum Software