![]() |
Stand alone popup |
Post Reply ![]() |
Author | |
gmail ![]() Groupie ![]() Joined: 24 February 2008 Status: Offline Points: 45 |
![]() ![]() ![]() ![]() ![]() Posted: 07 April 2009 at 3:41pm |
How can I create stand alone popup menu (i.e. CXTPPopupBar) which I need then to track with CXTPCommandBar::TrackPopupMenu() when right clicking with mouse in my application?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Before Track:
CXTPPopupBar* pPopupBar = CXTPPopupBar::CreatePopupBar(GetCommandBars());
after Track
pPopupBar->InternalRelease();
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
mike.f ![]() Newbie ![]() Joined: 02 June 2009 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
Is InternalRelease() all I need to do?
I have the following: CXTPPopupBar* pNodeMenu = CXTPPopupBar::CreatePopupBar(GetCommandBars()); CPoint point; GetCursorPos(&point); BOOL track = CXTPCommandBars::TrackPopupMenu(pNodeMenu, TPM_LEFTALIGN | TPM_RIGHTBUTTON | TPM_RETURNCMD, point.x, point.y, this); pNodeMenu->InternalRelease(); and I get the following leaks: include\codejock\source\common\xtptooltipcontext.cpp(1917) : {652485} client block at 0x07217748, subtype c0, 112 bytes long. include\codejock\source\commandbars\xtpcommandbar.cpp(200) : {652072} normal block at 0x065ED0D8, 48 bytes long. include\codejock\source\commandbars\xtpcontrols.cpp(51) : {652071} client block at 0x07013688, subtype c0, 68 bytes long. Any ideas? thanks Mike |
|
![]() |
|
mike.f ![]() Newbie ![]() Joined: 02 June 2009 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
Nevermind, I just found someone else's leak.
Mike |
|
![]() |
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 |