Print Page | Close Window

Persistent & Movable Popup Menu

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=9815
Printed Date: 01 March 2025 at 9:54am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Persistent & Movable Popup Menu
Posted By: mrmathis
Subject: Persistent & Movable Popup Menu
Date Posted: 06 March 2008 at 5:50pm
I'd like to make a popup menu that does a couple of slightly unusual things.  First, I'd like it to stay on-screen for more than one click.  Second, I would like to be able to drag it around using a label I have inserted as the first entry in the menu.
 
I have found some threads relating to the first item using SetCloseSubMenuOnClick.  I've tried it and had some success.  My original code (before these unusual requirements surfaced) used CXTPCommandBars::TrackPopupMenu with TPM_RETURNCMD | TPM_NONOTIFY | TPM_RECURSE.  To get the multi-click behavior I had to drop TPM_RETURNCMD.  Is that correct?  I also changed my call to specify the window driving the popup as the parent and was able to catch message notification there.  Hmm, this isn't so much a question about "how" as a question about "am I doing this right?"
 
As to the drag, I am coming up empty.  Any suggestions?
 
 


-------------
--Mike



Replies:
Posted By: Oleg
Date Posted: 07 March 2008 at 3:20pm
Hi,
Send sample request to mailto:support@codejock.com - support@codejock.com


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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