![]() |
Ribbon: custom control sample? |
Post Reply
|
| Author | |
Jimor Marlow
Groupie
Joined: 03 June 2007 Location: Russian Federation Status: Offline Points: 30 |
Post Options
Thanks(0)
Quote Reply
Topic: Ribbon: custom control sample?Posted: 13 July 2007 at 8:54am |
|
Have you some custom control sample for RibbonBar? I didn't find it.
|
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 July 2007 at 11:17am |
|
Create a CDialog class and then do the following:
CMyDlg m_MyDlg;
CXTPControlPopup *pControlPopup = (CXTPControlPopup *)pRibbonGroup->Add( xtpControlPopup, ID_MY_BUTTON );
pControlPopup->SetBeginGroup( TRUE ); m_AddCustomDlg.Create( MAKEINTRESOURCE( CMyDlg::IDD ), m_pWnd ); CXTPControlCustom *pControlCustom = CXTPControlCustom::CreateControlCustom( &m_MyDlg ); (CXTPControlCustom *)pControlPopup->GetCommandBar()->GetControls()->Add( pControlCustom ); Any problems please let me know |
|
|
Thank you,
Terry Mancey email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey |
|
![]() |
|
Jimor Marlow
Groupie
Joined: 03 June 2007 Location: Russian Federation Status: Offline Points: 30 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 July 2007 at 8:48am |
|
Thanx a lot, it works!
|
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 July 2007 at 8:52am |
|
No problem, glad to help
|
|
|
Thank you,
Terry Mancey email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey |
|
![]() |
|
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 |