Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Preventing PopupToolBar from poping
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Preventing PopupToolBar from poping

 Post Reply Post Reply
Author
Message
iandenis View Drop Down
Newbie
Newbie


Joined: 26 October 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote iandenis Quote  Post ReplyReply Direct Link To This Post Topic: Preventing PopupToolBar from poping
    Posted: 13 November 2006 at 11:56am
Hello,
 
I have a xtpControlSplitButtonPopup on my CommandBar and wanted to trap the event similar to ON_NOTIFY(TBN_DROPDOWN ...) and somehow force the ToolBar not to popup.  I have tried handling ON_XTP_INITCOMMANDSPOPUP and removed all control(s) from list.  In the best scenario, an empty toolbar would still popup.  Any proper solution to this?  Thx.
 
Ian
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: 13 November 2006 at 3:57pm

Hello,

 
One of solution is override CXTPControlPopup and its
BOOL CXTPControlPopup::OnSetPopup(BOOL bPopup)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
iandenis View Drop Down
Newbie
Newbie


Joined: 26 October 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote iandenis Quote  Post ReplyReply Direct Link To This Post Posted: 14 November 2006 at 9:55am
Hello,
 
I have tried wrapping the CXTPPopupToolBar and overrided the Popup method.  The behavior seems to be OK.  Would this be another solution?  Many thanks.
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: 14 November 2006 at 10:23am
yes, this is another soluition :)
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.156 seconds.