How to Copy a group to a different tab? |
Post Reply |
Author | |
Holsy
Newbie Joined: 19 May 2010 Location: United States Status: Offline Points: 1 |
Post Options
Thanks(0)
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.
}
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |