Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - arrows again
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

arrows again

 Post Reply Post Reply
Author
Message
Сы& View Drop Down
Newbie
Newbie


Joined: 09 October 2007
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Сы& Quote  Post ReplyReply Direct Link To This Post Topic: arrows again
    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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 12 October 2007 at 8:22am
Hi,
 
replace CXTPControlPopup* pPopup = new CXTPControlPopup();
to
CXTPControlPopup* pPopup = CXTPControlPopup::CreateControlPopup(xtpControlButtonPopup);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.813 seconds.