Check mark on menu item. 
Author Message
 Check mark on menu item.

Hi,

  I have attached a menu resource (ID_MR) into a CMenu object (userMenu) at
run time by using AppendMenu(), and I want to put a check mark next to the
menu item in ID_MR.  I called the SetCheck(), with the default 1, inside the
OnUpdateXX(...) handler function in the view class, but the check mark is
still not there.  The object "userMenu" is a pop-up menu, and called by
right clicking the mouse button.  Does anybody know why?

Thanks.

Leo



Tue, 08 Nov 2005 06:04:46 GMT  
 Check mark on menu item.
If you do a popup menu, you attach a window to which the messages will be sent. My
recollection is that this includes the messages from the popup menu, so make sure your
handlers are in the right context.
                                joe

Quote:

>Hi,

>  I have attached a menu resource (ID_MR) into a CMenu object (userMenu) at
>run time by using AppendMenu(), and I want to put a check mark next to the
>menu item in ID_MR.  I called the SetCheck(), with the default 1, inside the
>OnUpdateXX(...) handler function in the view class, but the check mark is
>still not there.  The object "userMenu" is a pop-up menu, and called by
>right clicking the mouse button.  Does anybody know why?

>Thanks.

>Leo

Joseph M. Newcomer [MVP]

Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm


Tue, 08 Nov 2005 07:23:19 GMT  
 Check mark on menu item.
Is your OnUpdateXX handler getting called? It will get called only if the
owner of the menu is a CFrameWnd derived object.

--
Ajay Kalra [MVP - VC++]


Quote:
> Hi,

>   I have attached a menu resource (ID_MR) into a CMenu object (userMenu)
at
> run time by using AppendMenu(), and I want to put a check mark next to the
> menu item in ID_MR.  I called the SetCheck(), with the default 1, inside
the
> OnUpdateXX(...) handler function in the view class, but the check mark is
> still not there.  The object "userMenu" is a pop-up menu, and called by
> right clicking the mouse button.  Does anybody know why?

> Thanks.

> Leo



Tue, 08 Nov 2005 07:55:30 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Check marks on menu items

2. using dot instead of check mark on menu item

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

4. menu item "check" mark

5. menu item check mark

6. How to check marks next to menu item.

7. Menu check marks

8. menu check marks and modeless dlgs

9. Drawing the check mark etc for OwnerDraw menu

10. Menu item chk mark

11. Custom check-mark bitmaps in menus.

12. Using dot instead of check mark on context sensitive menu

 

 
Powered by phpBB® Forum Software