<?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 : LoadMenu discard the MFS_GRAYED flag?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : LoadMenu discard the MFS_GRAYED flag?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 11 Apr 2026 05:32:28 +0000</pubDate>
  <lastBuildDate>Tue, 21 Sep 2004 06:57:39 +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=1168</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[LoadMenu discard the MFS_GRAYED flag? : Add UPDATE handler for ID_FAVORITE_DELETE...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1168&amp;PID=3193&amp;title=loadmenu-discard-the-mfs-grayed-flag#3193</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1168<br /><strong>Posted:</strong> 21 September 2004 at 6:57am<br /><br /><P>Add UPDATE handler for ID_FAVORITE_DELETE and call </P><P>pCmdUI-&gt;Enable(FALSE);</P>]]>
   </description>
   <pubDate>Tue, 21 Sep 2004 06:57:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1168&amp;PID=3193&amp;title=loadmenu-discard-the-mfs-grayed-flag#3193</guid>
  </item> 
  <item>
   <title><![CDATA[LoadMenu discard the MFS_GRAYED flag? : how can i solve the promblem in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1168&amp;PID=3187&amp;title=loadmenu-discard-the-mfs-grayed-flag#3187</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=574">blueseaing</a><br /><strong>Subject:</strong> 1168<br /><strong>Posted:</strong> 20 September 2004 at 7:35pm<br /><br />how can i solve the promblem in xtp8.7, do have any hot fix? please help me.]]>
   </description>
   <pubDate>Mon, 20 Sep 2004 19:35:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1168&amp;PID=3187&amp;title=loadmenu-discard-the-mfs-grayed-flag#3187</guid>
  </item> 
  <item>
   <title><![CDATA[LoadMenu discard the MFS_GRAYED flag? : it works with 9.10 with TPM_NONOTIFY...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1168&amp;PID=3133&amp;title=loadmenu-discard-the-mfs-grayed-flag#3133</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1168<br /><strong>Posted:</strong> 15 September 2004 at 11:53pm<br /><br />it works with 9.10&nbsp;&nbsp; with <FONT color=#000000>TPM_NONOTIFY flag</FONT>]]>
   </description>
   <pubDate>Wed, 15 Sep 2004 23:53:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1168&amp;PID=3133&amp;title=loadmenu-discard-the-mfs-grayed-flag#3133</guid>
  </item> 
  <item>
   <title><![CDATA[LoadMenu discard the MFS_GRAYED flag? : I have such code  CMenu cMenu;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1168&amp;PID=3098&amp;title=loadmenu-discard-the-mfs-grayed-flag#3098</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=574">blueseaing</a><br /><strong>Subject:</strong> 1168<br /><strong>Posted:</strong> 13 September 2004 at 1:44am<br /><br /><P>I have such code</P><P>&nbsp; CMenu cMenu;<BR>&nbsp; VERIFY(cMenu.LoadMenu(IDR_FAVORITE_POPUP));<BR>&nbsp; CMenu* pPopup = cMenu.GetSubMenu(0);&nbsp; <BR>&nbsp; pPopup-&gt;EnableMenuItem(ID_FAVORITE_DELETE,MF_GRAYED);<BR>&nbsp; <FONT color=#cc0000>CXTPCommandBars::TrackPopupMenu(pPopup,TPM_LEFTALIGN, point.x, point.y,this, NULL);</FONT></P><P>&nbsp; but the MF_GRAYED not appeared, and if i use the winapi ::TrackPopupMenu() and the <BR>effect will appear, so I study the source code of XTP,and added such code belows:</P><P><FONT color=#ff0000>BOOL CXTPCommandBar::LoadMenu(CMenu* pMenu, BOOL bRemoveControls)</FONT><BR>{<BR>&nbsp;if (!pMenu || !::IsMenu(pMenu-&gt;m_hMenu))<BR>&nbsp; return FALSE;</P><P>&nbsp;if (bRemoveControls)<BR>&nbsp; m_pControls-&gt;RemoveAll();<BR>&nbsp;<BR>&nbsp;BOOL bSeparator = FALSE;<BR>&nbsp;for (int i = 0; i &lt; ::GetMenuItemCount(pMenu-&gt;m_hMenu); i++)<BR>&nbsp;{<BR>&nbsp; // Check to see if the item is a separator, we don't want<BR>&nbsp; // to use GetMenuItemID(i) because it may not equal zero.<BR>&nbsp; MENUITEMINFO info = { sizeof(MENUITEMINFO), MIIM_TYPE };<BR>&nbsp; ::GetMenuItemInfo(pMenu-&gt;m_hMenu, i, TRUE, &amp;info);</P><P>&nbsp; if ((info.fType &amp; MFT_SEPARATOR) == MFT_SEPARATOR)<BR>&nbsp;&nbsp; bSeparator = TRUE; <BR>&nbsp; else<BR>&nbsp; {<BR>&nbsp;&nbsp; CXTPControl* pControl = m_pControls-&gt;AddMenuItem(pMenu, i);</P><P>&nbsp;&nbsp; if (pControl &amp;&amp; bSeparator)<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; pControl-&gt;SetBeginGroup(TRUE);<BR>&nbsp;&nbsp;&nbsp; bSeparator = FALSE;<BR>&nbsp;<BR>&nbsp;&nbsp; }</P><P>&nbsp;<FONT color=#ff0000>&nbsp; //added such code but the SetEnabled() function&nbsp; don't effect ??? why??<BR>&nbsp;&nbsp; if (info.fState &amp; MFS_GRAYED)<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; pControl-&gt;SetEnabled(FALSE);<BR>&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp; }<BR></FONT>&nbsp; }<BR>&nbsp;}<BR>&nbsp;CFrameWnd* pFrame = GetParentFrame();<BR>&nbsp;if (pFrame) pFrame-&gt;DelayRecalcLayout();<BR>&nbsp;return TRUE;<BR>}</P><P>why?? does the xtp discard the MFS_GRAYED???</P><P>&nbsp; </P>]]>
   </description>
   <pubDate>Mon, 13 Sep 2004 01:44:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1168&amp;PID=3098&amp;title=loadmenu-discard-the-mfs-grayed-flag#3098</guid>
  </item> 
 </channel>
</rss>