<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Pop-Up Menu is not disappearing</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Pop-Up Menu is not disappearing]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 30 Apr 2026 21:09:30 +0000</pubDate>
  <lastBuildDate>Thu, 21 Sep 2006 12:49:30 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=5054</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Pop-Up Menu is not disappearing : Hi, I need some project to debug/to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15975&amp;title=popup-menu-is-not-disappearing#15975</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5054<br /><strong>Posted:</strong> 21 September 2006 at 12:49pm<br /><br />Hi,<DIV>I need some project to debug/to test. Can you just create new project/copy some parts from your aplication to show problem and attach in issue or here.</DIV>]]>
   </description>
   <pubDate>Thu, 21 Sep 2006 12:49:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15975&amp;title=popup-menu-is-not-disappearing#15975</guid>
  </item> 
  <item>
   <title><![CDATA[Pop-Up Menu is not disappearing : Bump... ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15968&amp;title=popup-menu-is-not-disappearing#15968</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2339">Cowboy</a><br /><strong>Subject:</strong> 5054<br /><strong>Posted:</strong> 21 September 2006 at 11:09am<br /><br />Bump...]]>
   </description>
   <pubDate>Thu, 21 Sep 2006 11:09:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15968&amp;title=popup-menu-is-not-disappearing#15968</guid>
  </item> 
  <item>
   <title><![CDATA[Pop-Up Menu is not disappearing : My project unlike the sample from...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15848&amp;title=popup-menu-is-not-disappearing#15848</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2339">Cowboy</a><br /><strong>Subject:</strong> 5054<br /><strong>Posted:</strong> 19 September 2006 at 12:10pm<br /><br />My project unlike the sample from Code Projects does not have another window nor dialog.  The window in the taskbar is created from my winmain and its parent is the taskbar itself.<br /><br />Sorry, I am not clear on the last half of you post oleg.  What would be the benefit of creating a hidden child window?  Are you suggesting that user should right-click on this hidden window to bring up the menu rather than on the taskbar window?]]>
   </description>
   <pubDate>Tue, 19 Sep 2006 12:10:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15848&amp;title=popup-menu-is-not-disappearing#15848</guid>
  </item> 
  <item>
   <title><![CDATA[Pop-Up Menu is not disappearing : Hi,  this can be problem. OS...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15810&amp;title=popup-menu-is-not-disappearing#15810</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5054<br /><strong>Posted:</strong> 18 September 2006 at 12:00pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>this can be problem. OS sends WM_ACTIVATEAPP&nbsp;&nbsp;if your applciation has window that become deactive.... Do you have some not child window like dialog in CodeProject sample? If yes, you need activate it first. If not, I guess you can try create hiddne window and activate it.</DIV>]]>
   </description>
   <pubDate>Mon, 18 Sep 2006 12:00:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15810&amp;title=popup-menu-is-not-disappearing#15810</guid>
  </item> 
  <item>
   <title><![CDATA[Pop-Up Menu is not disappearing : My project is not a tray icon...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15800&amp;title=popup-menu-is-not-disappearing#15800</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2339">Cowboy</a><br /><strong>Subject:</strong> 5054<br /><strong>Posted:</strong> 18 September 2006 at 10:10am<br /><br />My project is not a tray icon with a dialog like the sample, but rather just a simple, small window that lives in the taskbar.  My code is based upon <a href="http://www.codeproject.com/statusbar/taskbarctrl.asp" target="_blank">a project</a> found in Code Projects.  The main difference is that my version has a right-click menu, which I am trying to add Code Jock capability to.<br /><br />As I indicated before, my class does not inherit from Code Jock but rather from the MFC class "CProgressCtrl".  The only place where I implement the Code Jock code is when calling the following line:<br /><br />CXTPCommandBars::TrackPopupMenu(pSubMenu, TPM_NONOTIFY, pos.x, pos.y, this);<br /><br />However, when I switch to the MFC call:<br /><br />::TrackPopupMenu(pSubMenu-&gt;m_hMenu, 0, pos.x, pos.y, 0, this-&gt;m_hWnd, NULL);<br /><br />My program works (By this I mean the right-click menu disappears when you click outside of the window)!<br /><br />What do I need to do to get the Code Jock "TrackPopupMenu" method to work?]]>
   </description>
   <pubDate>Mon, 18 Sep 2006 10:10:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15800&amp;title=popup-menu-is-not-disappearing#15800</guid>
  </item> 
  <item>
   <title><![CDATA[Pop-Up Menu is not disappearing : Hi, You also show menu from tray?   Try...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15753&amp;title=popup-menu-is-not-disappearing#15753</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5054<br /><strong>Posted:</strong> 16 September 2006 at 3:58am<br /><br />Hi,<DIV>You also show menu from tray?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Try as in sample create derived class:</DIV><DIV>&nbsp;</DIV><DIV><BR>class CXTTrayIconEx : public CXTTrayIcon<BR>{<BR>&nbsp;bool CreateMinimizeWnd(CWnd* /*pWndApp*/)<BR>&nbsp;{<BR>&nbsp;&nbsp;return true;<BR>&nbsp;}<BR>};<BR></DIV>]]>
   </description>
   <pubDate>Sat, 16 Sep 2006 03:58:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15753&amp;title=popup-menu-is-not-disappearing#15753</guid>
  </item> 
  <item>
   <title><![CDATA[Pop-Up Menu is not disappearing : Oleg,  Update: I&amp;#039;ve been...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15752&amp;title=popup-menu-is-not-disappearing#15752</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2339">Cowboy</a><br /><strong>Subject:</strong> 5054<br /><strong>Posted:</strong> 15 September 2006 at 5:13pm<br /><br />Oleg,<br /><br />Update:<br />I've been trying to debug the issue and have discovered that in the working Tray App Demo sample provided in the Code Jock Kit, a WndProc(...) function for the CXTPKeyboardManager class receives a WM_ACTIVATEAPP message.<br /><br />However, in my app, I never receive this windows message even though I am hooked with the keyboard.<br /><br />What is the missing link???]]>
   </description>
   <pubDate>Fri, 15 Sep 2006 17:13:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15752&amp;title=popup-menu-is-not-disappearing#15752</guid>
  </item> 
  <item>
   <title><![CDATA[Pop-Up Menu is not disappearing : Oleg hi!  I am working with Xtreme...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15727&amp;title=popup-menu-is-not-disappearing#15727</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2339">Cowboy</a><br /><strong>Subject:</strong> 5054<br /><strong>Posted:</strong> 15 September 2006 at 8:46am<br /><br />Oleg hi!<br /><br />I am working with Xtreme ToolkitPro 2006 Q2 version 10.2<br /><br />]]>
   </description>
   <pubDate>Fri, 15 Sep 2006 08:46:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15727&amp;title=popup-menu-is-not-disappearing#15727</guid>
  </item> 
  <item>
   <title><![CDATA[Pop-Up Menu is not disappearing : Hi, What version of Toolkit ?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15713&amp;title=popup-menu-is-not-disappearing#15713</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5054<br /><strong>Posted:</strong> 15 September 2006 at 12:55am<br /><br />Hi,<DIV>What version of Toolkit ?</DIV>]]>
   </description>
   <pubDate>Fri, 15 Sep 2006 00:55:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15713&amp;title=popup-menu-is-not-disappearing#15713</guid>
  </item> 
  <item>
   <title><![CDATA[Pop-Up Menu is not disappearing : I am implementing a pop-up menu...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15705&amp;title=popup-menu-is-not-disappearing#15705</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2339">Cowboy</a><br /><strong>Subject:</strong> 5054<br /><strong>Posted:</strong> 14 September 2006 at 4:07pm<br /><br /><font face="Arial, Helvetica, sans-serif">I am implementing a pop-up menu upon right clicking in my app's client window and am using Code Jock's CXTPCommandBars::TrackPopupMenu(...) function call.  The menu pops up correctly, but when I switch to a different window, the menu stays up even though the app's window is not the foreground window anymore.<br /><br />Here is a snippet of the code:</font><br /><br /><font face="Courier New, Courier, mono">::SetMenuDefaultItem(pSubMenu-&gt;m_hMenu, ID_EGA_CLOSE, FALSE);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />CPoint pos;<br />GetCursorPos(&pos);<br />::SetForegroundWindow(this-&gt;m_hWnd);<br /><br />CXTPCommandBars::TrackPopupMenu(pSubMenu, TPM_NONOTIFY, pos.x, pos.y, this);</font><br /><br /><font face="Arial, Helvetica, sans-serif">Also, when I switch to the MFC TrackPopupMenu(...) call, the pop-up menu works perfectly.  What is going on and how can I get the Code Jock menu to work correctly?<br /><br />FYI, the app window is MFC and not Code Jock.</font>]]>
   </description>
   <pubDate>Thu, 14 Sep 2006 16:07:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5054&amp;PID=15705&amp;title=popup-menu-is-not-disappearing#15705</guid>
  </item> 
 </channel>
</rss>