Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CheckMenuItem does not work for 3100
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CheckMenuItem does not work for 3100

 Post Reply Post Reply
Author
Message
qbert2004 View Drop Down
Newbie
Newbie


Joined: 10 March 2004
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote qbert2004 Quote  Post ReplyReply Direct Link To This Post Topic: CheckMenuItem does not work for 3100
    Posted: 23 March 2004 at 4:00pm
Hi , Im trying to check a menu item while having Cool Menu's installed, its completely not working. This same code works for a non XT project, what gives ??


     
     CXTMenu* mmenu = (CXTMenu*)GetMenu();
     CXTMenu* submenu = (CXTMenu*)mmenu->GetSubMenu(0);


     UINT state = submenu->GetMenuState(ID_FILE_NEW, MF_BYCOMMAND);
     ASSERT(state != 0xFFFFFFFF);

     if (state & MF_CHECKED)
           submenu->CheckMenuItem(ID_FILE_NEW, MF_UNCHECKED | MF_BYCOMMAND);
     else
           submenu->CheckMenuItem(ID_FILE_NEW, MF_CHECKED | MF_BYCOMMAND);     
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.