Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to Copy a group to a different tab?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to Copy a group to a different tab?

 Post Reply Post Reply
Author
Message
Holsy View Drop Down
Newbie
Newbie
Avatar

Joined: 19 May 2010
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Holsy Quote  Post ReplyReply Direct Link To This Post Topic: How to Copy a group to a different tab?
    Posted: 19 May 2010 at 12:30pm
I am having trouble coping a CXTPRibbonGroup to a different CXTPRibbonTab. It seems that when I call CXTPRibbonGroup::Copy some of the group's member variables are reset and I wasn't expecting that. Here is what I am doing. Maybe there a different way to accomplish this?
 
CXTPRibbonGroups* pCXTPRibbonGroups = pSomeOtherTab->GetGroups(); //Not the same tab that pCXTPRibbonGroupToCopy is in.
CXTPRibbonGroup* pCopiedGroup = pCXTPRibbonGroups->InsertAt( nInsertAfterIndex, "Copied Group", nInsertId );
if( pCopiedGroup )
{
    pCopiedGroup->Copy( pCXTPRibbonGroupToCopy );
 
    // pCopiedGroup->m_pGroups is now set to pCXTPRibbonGroupToCopy->m_pGroups
    // This is not what I was hoping for. 
}
 
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.172 seconds.