Preventing PopupToolBar from poping |
Post Reply |
Author | |
iandenis
Newbie Joined: 26 October 2006 Status: Offline Points: 6 |
Post Options
Thanks(0)
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello, One of solution is override CXTPControlPopup and its
BOOL CXTPControlPopup::OnSetPopup(BOOL bPopup)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
iandenis
Newbie Joined: 26 October 2006 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
yes, this is another soluition :)
|
|
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 |