<?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 : Show PopUp Menu? Help!!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Show PopUp Menu? Help!!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 07 Apr 2026 18:03:40 +0000</pubDate>
  <lastBuildDate>Tue, 30 Dec 2003 01:20:35 +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=315</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[Show PopUp Menu? Help!! : If you don&amp;#039;t have MainFrame...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=315&amp;PID=707&amp;title=show-popup-menu-help#707</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 315<br /><strong>Posted:</strong> 30 December 2003 at 1:20am<br /><br /><P>If you don't have MainFrame in you application, </P><P>try to call CXTPPaintManager::SetTheme(xtpThemeOfficeXP); in the dialog::OnInitDialog</P>]]>
   </description>
   <pubDate>Tue, 30 Dec 2003 01:20:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=315&amp;PID=707&amp;title=show-popup-menu-help#707</guid>
  </item> 
  <item>
   <title><![CDATA[Show PopUp Menu? Help!! : Hi! I&amp;#039;m trying to pop-up...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=315&amp;PID=704&amp;title=show-popup-menu-help#704</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=286">softz</a><br /><strong>Subject:</strong> 315<br /><strong>Posted:</strong> 29 December 2003 at 5:14am<br /><br /><P>Hi!</P><P>I'm trying to pop-up a dynamic menu from my dialog through <FONT size=2>CXTPCommandBars::TrackPopupMenu(). The following is my code.</FONT></P><P><FONT size=2><FONT size=2>/// ---</FONT></FONT></P><FONT size=2><FONT size=2><FONT face="Arial, Helvetica, sans-serif" size=1><P>CXTMenu popupMenu;</P></FONT><P><FONT face="Arial, Helvetica, sans-serif" size=1>popupMenu.CreatePopupMenu();</FONT></P><P><FONT size=1><FONT face="Arial, Helvetica, sans-serif"><FONT color=#0000ff>for</FONT>(<FONT color=#0000ff>int</FONT> i = 0; i &lt; 5; i++)</FONT></FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>{</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>&nbsp;&nbsp; CMenu subMenu;</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>&nbsp;&nbsp; subMenu.CreatePopupMenu();</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>&nbsp;&nbsp; subMenu.AppendMenu(MF_STRING, ID_LOGIN + i, "Login");</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>&nbsp;&nbsp; subMenu.AppendMenu(MF_SEPARATOR);</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>&nbsp;&nbsp; subMenu.AppendMenu(MF_STRING, ID_AUTOIN + i, "Auto In");</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>&nbsp;&nbsp; subMenu.AppendMenu(MF_STRING, ID_MANUALIN + i, "Manual In");</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>&nbsp;&nbsp; subMenu.AppendMenu(MF_STRING, ID_AFTERCALLWORK + i, "AfterCall Work");</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>&nbsp;&nbsp; subMenu.AppendMenu(MF_SEPARATOR);</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>&nbsp;&nbsp; subMenu.AppendMenu(MF_STRING, ID_LOGOUT + i, "Logout");</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>&nbsp;&nbsp; CString str;</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>&nbsp;&nbsp; str.Format("User%d", i);</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>&nbsp;&nbsp; popupMenu.AppendMenu(MF_POPUP, (UINT_PTR)subMenu.m_hMenu, str);</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>}</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>TRACE("GetMenuItemCount: %d\n", popupMenu.GetMenuItemCount());</FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=1>CXTPCommandBars::TrackPopupMenu(&amp;popupMenu, 0, 10, 10, <FONT color=#0000ff>this</FONT>);</FONT></P><P></FONT><FONT size=2>/// --</FONT></P><P></FONT><FONT size=2>I can't display the menu which I originally wanted through Codejock's CXTPCommandBars. However, it works fine with Win32API. Can anyone help me on this. By the way, "this" is a pointer to my dialog.</FONT></P><P><FONT size=2></FONT>&nbsp;</P><P><FONT size=2>Regards,</FONT></P><P><FONT size=2>Eric</FONT></P>]]>
   </description>
   <pubDate>Mon, 29 Dec 2003 05:14:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=315&amp;PID=704&amp;title=show-popup-menu-help#704</guid>
  </item> 
 </channel>
</rss>