Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Persistent & Movable Popup Menu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Persistent & Movable Popup Menu

 Post Reply Post Reply
Author
Message
mrmathis View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 May 2007
Location: United States
Status: Offline
Points: 105
Post Options Post Options   Thanks (0) Thanks(0)   Quote mrmathis Quote  Post ReplyReply Direct Link To This Post Topic: Persistent & Movable Popup Menu
    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
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: 07 March 2008 at 3:20pm
Hi,
Send sample request to support@codejock.com
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.051 seconds.