Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CCmdUI::SetRadio - "black-dot"-look in menus?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CCmdUI::SetRadio - "black-dot"-look in menus?

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


Joined: 03 July 2006
Location: Poland
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote voitas Quote  Post ReplyReply Direct Link To This Post Topic: CCmdUI::SetRadio - "black-dot"-look in menus?
    Posted: 03 July 2006 at 5:19am
I cannot get "black-dots" in menu items, which I checked with CCmdUI::SetRadio. I have same situation in Codejock samples (GUI_Explorer and others). There are only regular "check-marks" visible.

When I go into the CCmdUI::SetRadio I can see (MFC source file cmdtarg.cpp):
   SetCheck(bOn ? 1 : 0);
   if (m_pMenu != NULL) {
      [...]
      SetMenuItemBitmaps(m_pMenu->m_hMenu, [...], _AfxLoadDotBitmap())

but m_pMenu is always NULL, and _AfxLoadDotBitmap() is never called during the application lifetime.
The actual type of object passed to UPDATE_UI handler is CXTPCommandBarCmdUI, which overrides method SetCheck, but not SetRadio.

Is it possible to get "dot-marks" in menus with XtremeToolkit?
Or maybe suggestions what I possibly do wrong?

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 07 July 2006 at 3:17pm
Hello,
 
Here sample: RadioTest.zip
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.184 seconds.