Print Page | Close Window

Stand alone popup

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=13948
Printed Date: 27 February 2025 at 3:44pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Stand alone popup
Posted By: gmail
Subject: Stand alone popup
Date 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?



Replies:
Posted By: Oleg
Date 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


Posted By: mike.f
Date 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



Posted By: mike.f
Date Posted: 24 July 2009 at 6:50pm
Nevermind, I just found someone else's leak.

Mike



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net