Print Page | Close Window

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

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=4531
Printed Date: 04 October 2024 at 1:14pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CCmdUI::SetRadio - "black-dot"-look in menus?
Posted By: voitas
Subject: CCmdUI::SetRadio - "black-dot"-look in menus?
Date 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?




Replies:
Posted By: Oleg
Date Posted: 07 July 2006 at 3:17pm
Hello,
 
Here sample: https://forum.codejock.com/uploads/20060707_151658_RadioTest.zip - RadioTest.zip


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net