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