<?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 : CXTPCommandBars &#111;n glitch &#111;n NT</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPCommandBars &#111;n glitch &#111;n NT]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 06:39:10 +0000</pubDate>
  <lastBuildDate>Wed, 18 Aug 2004 03:27:33 +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=1045</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[CXTPCommandBars &#111;n glitch &#111;n NT : NT4 compares the size you specify...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1045&amp;PID=2781&amp;title=cxtpcommandbars-on-glitch-on-nt#2781</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=150">Sven</a><br /><strong>Subject:</strong> 1045<br /><strong>Posted:</strong> 18 August 2004 at 3:27am<br /><br /><P>NT4 compares the size you specify in MENUITEMINFO.cbSize&nbsp;with the size of the old MENUITEMINFO size. If the size is not equal the function returns with an error code and the&nbsp;values of MENUITEMINFO&nbsp;remain uninitialized. You can test this if you set a breakpoint in CXTPCommandBar::LoadMenu.</P>]]>
   </description>
   <pubDate>Wed, 18 Aug 2004 03:27:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1045&amp;PID=2781&amp;title=cxtpcommandbars-on-glitch-on-nt#2781</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPCommandBars &#111;n glitch &#111;n NT : Sven, Thanks for your reply.  What...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1045&amp;PID=2766&amp;title=cxtpcommandbars-on-glitch-on-nt#2766</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=682">plamen</a><br /><strong>Subject:</strong> 1045<br /><strong>Posted:</strong> 16 August 2004 at 10:58am<br /><br />Sven,<br />Thanks for your reply. <br />What I don't understand is how the new MENUITEMINFO size could affect the state of the menu under NT - fState field is part of the NT's MENUITEMINFO as well. <br />I can imagine that some of the new added flags/fields may not work on NT but, hey, that's why there weren't part of the original NT structure.<br /><br />Btw does this mean that you've managed to reproduce it and fixed it that way? <br /><br />Cheers<br />Plamen  <br />]]>
   </description>
   <pubDate>Mon, 16 Aug 2004 10:58:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1045&amp;PID=2766&amp;title=cxtpcommandbars-on-glitch-on-nt#2766</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPCommandBars &#111;n glitch &#111;n NT : Since NT4/W95 the size of MENUITEMINFO...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1045&amp;PID=2757&amp;title=cxtpcommandbars-on-glitch-on-nt#2757</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=150">Sven</a><br /><strong>Subject:</strong> 1045<br /><strong>Posted:</strong> 14 August 2004 at 1:42pm<br /><br /><P>Since NT4/W95 the size of MENUITEMINFO has been changed. If you compile the toolkit with the latest Platform SDK&nbsp;and WINVER &gt;= 0x0500 you have to adjust the MENUITEMINFO size in CXTPCommandBar::LoadMenu.</P><P><table width="99%"><tr><td><pre class="BBcode"><BR>#if (WINVER &gt;= 0x0500)<BR>#define MENUITEMINFO_SIZE_VERSION_400A&nbsp; CDSIZEOF_STRUCT(MENUITEMINFOA, cch)<BR>#define MENUITEMINFO_SIZE_VERSION_400W&nbsp; CDSIZEOF_STRUCT(MENUITEMINFOW, cch)<BR>#define MENUITEMINFO_SIZE_VERSION_500A&nbsp; sizeof(MENUITEMINFOA)<BR>#define MENUITEMINFO_SIZE_VERSION_500W&nbsp; sizeof(MENUITEMINFOW)<BR>#ifdef UNICODE<BR>#define MENUITEMINFO_SIZE_VERSION_400&nbsp; MENUITEMINFO_SIZE_VERSION_400W<BR>#define MENUITEMINFO_SIZE_VERSION_500&nbsp; MENUITEMINFO_SIZE_VERSION_500W<BR>#else<BR>#define MENUITEMINFO_SIZE_VERSION_400&nbsp; MENUITEMINFO_SIZE_VERSION_400A<BR>#define MENUITEMINFO_SIZE_VERSION_500&nbsp; MENUITEMINFO_SIZE_VERSION_500A<BR>#endif<BR>#endif<BR><BR>#define MENUITEMINFO_SIZE&nbsp;&nbsp;MENUITEMINFO_SIZE_VERSION_400<BR><BR>BOOL CXTPCommandBar::LoadMenu(CMenu* pMenu, BOOL bRemoveControls)<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<BR>//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MENUITEMINFO info = { sizeof(MENUITEMINFO), MIIM_TYPE|MIIM_STATE};<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MENUITEMINFO info = { MENUITEMINFO_SIZE, MIIM_TYPE|MIIM_STATE};<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<BR>}</pre></td></tr></table><BR></P>]]>
   </description>
   <pubDate>Sat, 14 Aug 2004 13:42:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1045&amp;PID=2757&amp;title=cxtpcommandbars-on-glitch-on-nt#2757</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPCommandBars &#111;n glitch &#111;n NT : I use the latest - v9.10 Anyway,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1045&amp;PID=2753&amp;title=cxtpcommandbars-on-glitch-on-nt#2753</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=682">plamen</a><br /><strong>Subject:</strong> 1045<br /><strong>Posted:</strong> 13 August 2004 at 6:53am<br /><br />I use the latest - v9.10<br />Anyway, if you still can't reproduce it I'll dive into your code to find some more info about it.  <br /><br />]]>
   </description>
   <pubDate>Fri, 13 Aug 2004 06:53:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1045&amp;PID=2753&amp;title=cxtpcommandbars-on-glitch-on-nt#2753</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPCommandBars &#111;n glitch &#111;n NT : Can&amp;#039;t reproduce with nt4...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1045&amp;PID=2741&amp;title=cxtpcommandbars-on-glitch-on-nt#2741</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1045<br /><strong>Posted:</strong> 11 August 2004 at 12:24pm<br /><br /><P>Can't reproduce with nt4 sp6.</P><P>&nbsp;</P><P>May be in nt4 you have version earlier than 9.00? </P><P>TPM_NONOTIFY&nbsp; appeared in 9.00...</P>]]>
   </description>
   <pubDate>Wed, 11 Aug 2004 12:24:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1045&amp;PID=2741&amp;title=cxtpcommandbars-on-glitch-on-nt#2741</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPCommandBars &#111;n glitch &#111;n NT : Oleg, I use a clean NT4 Service...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1045&amp;PID=2732&amp;title=cxtpcommandbars-on-glitch-on-nt#2732</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=682">plamen</a><br /><strong>Subject:</strong> 1045<br /><strong>Posted:</strong> 11 August 2004 at 2:26am<br /><br />Oleg,<br />I use a clean NT4 Service Pack 6 / IE 5.5.<br /><br />Find the sample attached.<br /><br />Cheers,<br />Plamen<br /><br /><a target="_blank" href="uploads/plamen/2004-08-11_022548_testpopup.zip" target="_blank">2004-08-11_022548_testpopup.zip</a>]]>
   </description>
   <pubDate>Wed, 11 Aug 2004 02:26:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1045&amp;PID=2732&amp;title=cxtpcommandbars-on-glitch-on-nt#2732</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPCommandBars &#111;n glitch &#111;n NT : Strange, I can&amp;#039;t reproduce...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1045&amp;PID=2729&amp;title=cxtpcommandbars-on-glitch-on-nt#2729</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1045<br /><strong>Posted:</strong> 11 August 2004 at 2:17am<br /><br /><P>Strange, I can't reproduce it in my NT4 machine :(</P><P>Can you upload your example?</P><P>Can you manually debug CXTPCommandBar::LoadMenu and check if info.fState == MFS_DISABLED for ID_POPUP_DISABLED?</P>]]>
   </description>
   <pubDate>Wed, 11 Aug 2004 02:17:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1045&amp;PID=2729&amp;title=cxtpcommandbars-on-glitch-on-nt#2729</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPCommandBars &#111;n glitch &#111;n NT : Guys, I noticed a small problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1045&amp;PID=2716&amp;title=cxtpcommandbars-on-glitch-on-nt#2716</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=682">plamen</a><br /><strong>Subject:</strong> 1045<br /><strong>Posted:</strong> 10 August 2004 at 9:05am<br /><br />Guys,<br />I noticed a small problem with CXTPCommandBars on Windows NT. <br />It looks like if you create a pop-up a menu with some items disabled, on NT displays them enabled instead. However, it looks like it works fine on XP.<br /><br />To reproduce it build a standard MDI application and add the code below into the view.<br /><br />Cheers,<br />Plamen<br /><br /><br /><br />void CTest2View::OnRButtonDown(UINT nFlags, CPoint point) <br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ClientToScreen( &point );<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CMenu menu;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;menu.LoadMenu(IDR_POPUPMENU);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;menu.GetSubMenu(0)-&gt;EnableM enuItem(ID_POPUP_DISABLED, MF_BYCOMMAND | MF_DISABLED);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UINT iCmdID = CXTPCommandBars::TrackPopupMenu(menu.GetSubMenu(0), TPM_LEFTALIGN | TPM_RIGHTBUTTON | TPM_NONOTIFY | TPM_RETURNCMD, point.x, point.y, AfxGetMainWnd(), NULL);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (iCmdID == ID_POPUP_DISABLED)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AfxMessageBox(L"This menu should be disabled...");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CView::OnRButtonDown(nFlags, point);<br />}<br />]]>
   </description>
   <pubDate>Tue, 10 Aug 2004 09:05:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1045&amp;PID=2716&amp;title=cxtpcommandbars-on-glitch-on-nt#2716</guid>
  </item> 
 </channel>
</rss>