Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Quick access control FindDuplicate fails
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Quick access control FindDuplicate fails

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: Quick access control FindDuplicate fails
    Posted: 23 January 2011 at 11:10am
The CXTPRibbonQuickAccessControls::FindDuplicate fails to find a control if the control is hidden because of the xtpHideRibbonTab flag. Should the method not do this in the test:

if (pQuickAccessControl->GetID() == pControl->GetID() && (pQuickAccessControl->IsVisible(xtpHideWrap) || pQuickAccessControl->IsVisible(xtpHideRibbonTab )) &&

pQuickAccessControl->GetType() == pControl->GetType() && pQuickAccessControl->GetRuntimeClass() == pControl->GetRuntimeClass())

{

return pQuickAccessControl;

}

The comment for the hide flag says it is set for an "inactive ribbon". I have an inactive ribbon because I have an MDI application and the user is customizing the layout for a document type that is not the same as the active document (I don't even have that doc type open). Hence when the user adds a control to the QAT, IsAllowQuickAccessControl always returns TRUE for an inactive ribbon.
 
I can customize the ribbon without showing it. Is there some other way to customize a QAT layout of a ribbon without being forced to show the ribbon on the frame?
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.188 seconds.