Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to hide popup arrow
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to hide popup arrow

 Post Reply Post Reply
Author
Message Reverse Sort Order
Сы& 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: How to hide popup arrow
    Posted: 10 October 2007 at 2:16am
Originally posted by oleg oleg wrote:

Hi,
 
it is bShowExpandButtonAlways option.


Thanks, 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: 09 October 2007 at 2:48pm
Hi,
 
it is bShowExpandButtonAlways option.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Сы& 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 Posted: 09 October 2007 at 8:10am
Hi!

Is it possible remove black arrow from toolbar button with popup? (i use CXTPPopupBar)

Thanks!
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.188 seconds.