<?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 : Checking Toolbar Items</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Checking Toolbar Items]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 05:13:23 +0000</pubDate>
  <lastBuildDate>Mon, 21 Jun 2004 01:42:59 +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=830</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[Checking Toolbar Items : Did you try to open FAQ? think...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=830&amp;PID=2273&amp;title=checking-toolbar-items#2273</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 830<br /><strong>Posted:</strong> 21 June 2004 at 1:42am<br /><br /><P>Did you try to open FAQ? think no.</P><P>sample:</P><P>BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ON_UPDATE_COMMAND_UI(<strong>ID_PROPERTIES</strong>, OnUpdateProperties)</P><P>&nbsp;END_MESSAGE_MAP()</P><P>void CMainFrame::OnUpdateProperties(CCmdUI* pCmdUI)<BR>{<BR>&nbsp;pCmdUI-&gt;<strong>SetCheck</strong>(TRUE);</P><P>}</P>]]>
   </description>
   <pubDate>Mon, 21 Jun 2004 01:42:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=830&amp;PID=2273&amp;title=checking-toolbar-items#2273</guid>
  </item> 
  <item>
   <title><![CDATA[Checking Toolbar Items : okay thank you for your help. i...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=830&amp;PID=2259&amp;title=checking-toolbar-items#2259</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=573">VeRtEX</a><br /><strong>Subject:</strong> 830<br /><strong>Posted:</strong> 18 June 2004 at 9:08am<br /><br /><P>okay thank you for your help.</P><P>i now got it working with:<BR><BR>mToolbar-&gt;GetControls()-&gt;FindControl(xtpControlButton, ID_TOOLBAR_WIREFRAME, true, true)-&gt;SetChecked(app-&gt;mShowWireFrame);<BR><BR>i now tried the same to get a control from the menu bar... but doesn't work so i tried another approach:<BR><BR><BR>void CModelViewer2App::UpdateMenuItem(const int id, const bool check)<BR>{<BR>&nbsp;CMainFrame* mainFrm = (CMainFrame*)GetMainWnd();<BR>&nbsp;if (mainFrm)<BR>&nbsp;{<BR>&nbsp;&nbsp;CXTPControls* controls&nbsp;= mainFrm-&gt;mMenuBar.GetControls();<BR>&nbsp;&nbsp;const int numControls&nbsp;= controls-&gt;GetCount();<BR>&nbsp;&nbsp;LOG("numControls=%i", numControls);<BR>&nbsp;&nbsp;for (int i=0; i&lt;numControls; i++)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;CXTPControl* control = controls-&gt;GetAt(i);</P><P>&nbsp;&nbsp;&nbsp;if (!control)<BR>&nbsp;&nbsp;&nbsp;&nbsp;break;</P><P>&nbsp;&nbsp;&nbsp;if(control-&gt;GetID()==id)<BR>&nbsp;&nbsp;&nbsp;&nbsp;LOG("found");<BR>&nbsp;&nbsp;}<BR>}<BR><BR>but my menu has 0 controls...that is a bit strange ;) does anybody of you know how i can get access to my menu items on another way to check / uncheck them?</P>]]>
   </description>
   <pubDate>Fri, 18 Jun 2004 09:08:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=830&amp;PID=2259&amp;title=checking-toolbar-items#2259</guid>
  </item> 
  <item>
   <title><![CDATA[Checking Toolbar Items : To check item you must use update...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=830&amp;PID=2253&amp;title=checking-toolbar-items#2253</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 830<br /><strong>Posted:</strong> 18 June 2004 at 2:42am<br /><br />To check item you must use update hanler. see FAQ. ]]>
   </description>
   <pubDate>Fri, 18 Jun 2004 02:42:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=830&amp;PID=2253&amp;title=checking-toolbar-items#2253</guid>
  </item> 
  <item>
   <title><![CDATA[Checking Toolbar Items : how exactly? CXTPControl* button...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=830&amp;PID=2223&amp;title=checking-toolbar-items#2223</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=573">VeRtEX</a><br /><strong>Subject:</strong> 830<br /><strong>Posted:</strong> 15 June 2004 at 11:47am<br /><br /><P>how exactly?<BR></P><P>CXTPControl* button = mToolbar-&gt;GetControls()-&gt;FindControl(xtpControlButton, ID_TOOLBAR_WIREFRAME, true, true);<BR><BR><BR>i tried that...but crashed....i want to get the control by mfc id</P><P>do you know how i can do that?</P>]]>
   </description>
   <pubDate>Tue, 15 Jun 2004 11:47:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=830&amp;PID=2223&amp;title=checking-toolbar-items#2223</guid>
  </item> 
  <item>
   <title><![CDATA[Checking Toolbar Items : Hi, I would also like to know...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=830&amp;PID=2220&amp;title=checking-toolbar-items#2220</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=401">msamocha</a><br /><strong>Subject:</strong> 830<br /><strong>Posted:</strong> 15 June 2004 at 4:06am<br /><br /><P>Hi,</P><P>I would also like to know how can we Add / Delete / Modify menus/submenus (similar to MFC's CMenu InsertMenu, DeleteMenu and ModifyMenu)</P><P>Vertex, Did you try to use GetControl()to get a pointer to the control and then use some of the CXTPControl methods to&nbsp;do what you want?</P><span style="font-size:10px"><br /><br />Edited by msamocha</span>]]>
   </description>
   <pubDate>Tue, 15 Jun 2004 04:06:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=830&amp;PID=2220&amp;title=checking-toolbar-items#2220</guid>
  </item> 
  <item>
   <title><![CDATA[Checking Toolbar Items : Hi, How can i check items ofan...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=830&amp;PID=2200&amp;title=checking-toolbar-items#2200</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=573">VeRtEX</a><br /><strong>Subject:</strong> 830<br /><strong>Posted:</strong> 12 June 2004 at 8:03am<br /><br /><P>Hi,</P><P>How can i check items of&nbsp;an <FONT size=2>CXTPToolBar? Using the standard mfc toolbar it worked like this:</FONT></P><P>CToolBarCtrl&amp; ctrl&nbsp;&nbsp;= mToolBar.GetToolBarCtrl();<BR>ctrl.CheckButton(....);<BR><BR>But i don't see any fimilar function, can anyone help?</P><P>Cheers</P>]]>
   </description>
   <pubDate>Sat, 12 Jun 2004 08:03:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=830&amp;PID=2200&amp;title=checking-toolbar-items#2200</guid>
  </item> 
 </channel>
</rss>