![]() |
Persistent & Movable Popup Menu |
Post Reply ![]() |
Author | |
mrmathis ![]() Senior Member ![]() ![]() Joined: 17 May 2007 Location: United States Status: Offline Points: 105 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Send sample request to support@codejock.com
|
|
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 |