Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - A couple Quick Access issues
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

A couple Quick Access issues

 Post Reply Post Reply
Author
Message
Enclaved Shadow View Drop Down
Groupie
Groupie
Avatar

Joined: 22 August 2006
Location: Canada
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote Enclaved Shadow Quote  Post ReplyReply Direct Link To This Post Topic: A couple Quick Access issues
    Posted: 04 April 2011 at 7:37am
If I select the menu item 'Add to Quick Access Toolbar' from a context menu on a ribbon item that has an icon size of 32x32; Codejock appears to be taking that image size and shrinks it down to 16x16.  This causes the icon to not look very nice.  Internally I have a way of identifying each menu item and I have several image sizes for each menu item.  Is there a way of intercepting a windows message that will allow me to change the image of an item prior to it being added to the Quick Access Toolbar?

If I add a ribbon group to the Quick Access Toolbar through code the 'Remove from Quick Access Toolbar' item does not appear in the context menu once it has been added.  If I add a group via the context menu the 'Remove from Quick Access Toolbar' menu item is present.  Is this is a bug or am I adding the group incorrectly?  I have provided some code below to illustrate what I'm doing:

CXTPRibbonGroup* opRibbonGroup = GetRibbonGroup("MyGroup");
CXTPControl* opControl = opRibbonGroup->GetControlGroupPopup();
CXTPControl* opNewQuickAccessCtrl = opQuickAccessControls->AddClone(opControl, i, TRUE);
opNewQuickAccessCtrl->SetStyle(xtpButtonIcon);
opNewQuickAccessCtrl->SetHideFlags(xtpNoHide);
opNewQuickAccessCtrl->GetImageManager()->SetIcons(myBitmap, &myMenuID, 1, CSize(16, 16), xtpImageNormal);



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.047 seconds.