Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Stand alone popup
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Stand alone popup

 Post Reply Post Reply
Author
Message
gmail View Drop Down
Groupie
Groupie


Joined: 24 February 2008
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote gmail Quote  Post ReplyReply Direct Link To This Post Topic: Stand alone popup
    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?
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: 08 April 2009 at 12:52am
Hi,
 
Before Track:
 
CXTPPopupBar* pPopupBar = CXTPPopupBar::CreatePopupBar(GetCommandBars());
 
after Track
 
pPopupBar->InternalRelease();
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
mike.f View Drop Down
Newbie
Newbie


Joined: 02 June 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote mike.f Quote  Post ReplyReply Direct Link To This Post Posted: 24 July 2009 at 5:35pm
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

Back to Top
mike.f View Drop Down
Newbie
Newbie


Joined: 02 June 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote mike.f Quote  Post ReplyReply Direct Link To This Post Posted: 24 July 2009 at 6:50pm
Nevermind, I just found someone else's leak.

Mike
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.047 seconds.