<?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 : MFC C++ Dialog-based right click SubMenu Issue</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : MFC C++ Dialog-based right click SubMenu Issue]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 25 May 2026 13:12:27 +0000</pubDate>
  <lastBuildDate>Mon, 20 Apr 2015 13:53:07 +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=22495</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[MFC C++ Dialog-based right click SubMenu Issue : We have informed our development...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22495&amp;PID=73276&amp;title=mfc-c-dialogbased-right-click-submenu-issue#73276</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8848">mcmastl</a><br /><strong>Subject:</strong> 22495<br /><strong>Posted:</strong> 20 April 2015 at 1:53pm<br /><br />We have informed our development team of the issue and will be looking into it. &nbsp;Thank you for bringing this to our attention. &nbsp;If the issue has been resolved please let us know. &nbsp;]]>
   </description>
   <pubDate>Mon, 20 Apr 2015 13:53:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22495&amp;PID=73276&amp;title=mfc-c-dialogbased-right-click-submenu-issue#73276</guid>
  </item> 
  <item>
   <title><![CDATA[MFC C++ Dialog-based right click SubMenu Issue : I have an update to the problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22495&amp;PID=72999&amp;title=mfc-c-dialogbased-right-click-submenu-issue#72999</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8803">SubDrag</a><br /><strong>Subject:</strong> 22495<br /><strong>Posted:</strong> 19 December 2014 at 11:28pm<br /><br />I have an update to the problem - it only happens on submenus that are not statically defined but added on the fly before showing. &nbsp;&nbsp;<br><br>I have recreated it in the test Skin Controls app. &nbsp;<br><br><div><div>void CSkinControlsDlg::OnToolbarDropDown(NMHDR* /*pNotifyStruct*/, LRESULT* /*result*/ )</div><div>{</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>RECT rc;</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>m_wndToolBar.GetItemRect(1, &amp;rc);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>m_wndToolBar.ClientToScreen(&amp;rc);</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CMenu menu;</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>menu.LoadMenu(IDR_MENU_POPUP);</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>UINT startBitFlags = 10000;</div><div><span ="Apple-tab-span" style="white-space:pre">	</span></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CMenu tempMenu1Main;</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>tempMenu1Main.CreatePopupMenu();</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CMenu* menuLoaded = menu.GetSubMenu(0);</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>for (int y = 0; y &lt; 50; y+=50)</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>CMenu tempSubMenu1;</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>tempSubMenu1.CreatePopupMenu();<span ="Apple-tab-span" style="white-space:pre">	</span></div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">		</span>for (int x = 0; x &lt; 50; x=x++)</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>{<span ="Apple-tab-span" style="white-space:pre">		</span></div><div><span ="Apple-tab-span" style="white-space:pre">			</span>CString tempStr;</div><div><span ="Apple-tab-span" style="white-space:pre">			</span>tempStr.Format("Item %04X", x+y);</div><div><span ="Apple-tab-span" style="white-space:pre">			</span>tempSubMenu1.AppendMenu(MF_STRING | MF_ENABLED, (startBitFlags+x+y), "Item");</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>}</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">		</span>tempMenu1Main.InsertMenu(y/50, MF_BYPOSITION | MF_POPUP, (UINT_PTR)tempSubMenu1.m_hMenu, "SubMenu");</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CString csMnuText;</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>menuLoaded-&gt;GetMenuString(2, csMnuText, MF_BYPOSITION);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>menuLoaded-&gt;DeleteMenu(2, MF_BYPOSITION); //delete old popup</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>menuLoaded-&gt;InsertMenu(2, MF_BYPOSITION | MF_POPUP, (UINT_PTR)tempMenu1Main.m_hMenu, csMnuText);</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>TrackPopupMenu(menuLoaded-&gt;GetSafeHmenu(), 0, rc.left, rc.bottom, 0, m_hWnd, 0);</div><div>}</div></div><div><br></div><div><br></div><div>It seems the predefined submenus are working, but not these - it does work without loading any skins. &nbsp;This is done, then the menu is shown. &nbsp;It works without code jock skinning.&nbsp;</div><div><br></div><div>There must be a way to fix this.</div><div><br></div><div>Also, when I tried to just disable popup menus just as a test using SetApplyOptions (1 | 2 | 4)...the popup menus reverted fine...but the main menu didn't work at all.</div>]]>
   </description>
   <pubDate>Fri, 19 Dec 2014 23:28:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22495&amp;PID=72999&amp;title=mfc-c-dialogbased-right-click-submenu-issue#72999</guid>
  </item> 
  <item>
   <title><![CDATA[MFC C++ Dialog-based right click SubMenu Issue : I&amp;#039;m using the latest Skin...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22495&amp;PID=72998&amp;title=mfc-c-dialogbased-right-click-submenu-issue#72998</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8803">SubDrag</a><br /><strong>Subject:</strong> 22495<br /><strong>Posted:</strong> 19 December 2014 at 10:55pm<br /><br /><div><span style="line-height: 1.4;">I'm using the latest Skin framework for MFC C++ VS 2008 in a dialog-based application. &nbsp;It works great, except for right click submenus. &nbsp;Instead of showing the menu, it just shows a little button. &nbsp;This happens on all themes, cjstyles or msstyles. &nbsp;It happens in a CMenu,&nbsp;TrackPopupMenu call.</span></div><div><br></div><div>What do I do to fix this?</div><div><br></div><div>http://gyazo.com/4deb0b885df1607bc05f9bdbfd22e5fa</div>]]>
   </description>
   <pubDate>Fri, 19 Dec 2014 22:55:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22495&amp;PID=72998&amp;title=mfc-c-dialogbased-right-click-submenu-issue#72998</guid>
  </item> 
 </channel>
</rss>