arrows again |
Post Reply |
Author | |
Сы&
Newbie Joined: 09 October 2007 Status: Offline Points: 9 |
Post Options
Thanks(0)
Posted: 11 October 2007 at 1:20am |
Oleg! Thanks for the previous response, but i mean another arrows.
I create tollbar CXTPToolBar with 24x24 icons CXTPToolBar* pOperationsBar = (CXTPToolBar*)pCommandBars->Add(_T("Operations"), xtpBarLeft); if (!pOperationsBar || !pOperationsBar->LoadToolBar(IDR_TOOLBAR_OPERATIONS)) { TRACE0("Failed to create toolbar\n"); return -1; } pOperationsBar->EnableDocking(xtpFlagAlignAny|xtpFlagFloating|xtpFlagStretched|xtpFlagHideWrap); in OnCreateControl i adiing popup if (lpCreateControl->nID == ID_UNDO) { CXTPControlPopup* pPopup = new CXTPControlPopup(); CXTPPopupBar* pBar = CXTPPopupToolBar::CreatePopupToolBar(GetCommandBars()); pPopup->SetCommandBar(pBar); .... pBar->GetControls()->Add(pControlCustom); pBar->EnableCustomization(FALSE); pBar->DisableShadow(); pBar->SetBorders(CRect(1, 1, 1, 1)); pBar->InternalRelease(); lpCreateControl->pControl = pPopup; return TRUE; } and my icon ID_UNDO is replaced by arrow |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
replace CXTPControlPopup* pPopup = new CXTPControlPopup();
to CXTPControlPopup* pPopup = CXTPControlPopup::CreateControlPopup(xtpControlButtonPopup);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |