<?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 : CXTPControl -&gt; SetEnable issue</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CXTPControl -&gt; SetEnable issue]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 04:01:24 +0000</pubDate>
  <lastBuildDate>Tue, 29 Apr 2008 00:42: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=10383</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[CXTPControl -&gt; SetEnable issue : Hi, In Message Map add  ON_UPDATE_COMMAND_UI(ID_MYID,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10383&amp;PID=34357&amp;title=cxtpcontrol-setenable-issue#34357</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10383<br /><strong>Posted:</strong> 29 April 2008 at 12:42am<br /><br />Hi,<DIV>In Message Map add</DIV><DIV>&nbsp;</DIV><DIV>ON_UPDATE_COMMAND_UI(ID_MYID, OnUpdateMyID)</DIV><DIV>&nbsp;</DIV><DIV>and such code</DIV><DIV>&nbsp;</DIV><DIV><BR>void CMainFrame::OnUpdateMyID(CCmdUI* pCmdUI)<BR>{<BR>&nbsp;pCmdUI-&gt;Enable(m_bNeedEnableMyID);<BR>}</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>See more in MSDN.</DIV>]]>
   </description>
   <pubDate>Tue, 29 Apr 2008 00:42:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10383&amp;PID=34357&amp;title=cxtpcontrol-setenable-issue#34357</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPControl -&gt; SetEnable issue : Hi,Oleg: How can i use update...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10383&amp;PID=34353&amp;title=cxtpcontrol-setenable-issue#34353</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4133">apple</a><br /><strong>Subject:</strong> 10383<br /><strong>Posted:</strong> 28 April 2008 at 9:44pm<br /><br /><DIV>Hi,Oleg:</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;How can i use update handler? Can you tell me in details about that? </DIV><DIV>thx in advance. :-)</DIV>]]>
   </description>
   <pubDate>Mon, 28 Apr 2008 21:44:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10383&amp;PID=34353&amp;title=cxtpcontrol-setenable-issue#34353</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPControl -&gt; SetEnable issue : Hi, Because by default used MFC...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10383&amp;PID=34321&amp;title=cxtpcontrol-setenable-issue#34321</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10383<br /><strong>Posted:</strong> 28 April 2008 at 8:57am<br /><br /><P>Hi,</P><DIV>Because by default used MFC Update handlers - and your button will be Enabled in Handler.</DIV><DIV>As solution you can add line button-&gt;SetFlags(xtpFalgManualUpdate);</DIV><DIV>but I _very_ recommend use update handler instead.</DIV>]]>
   </description>
   <pubDate>Mon, 28 Apr 2008 08:57:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10383&amp;PID=34321&amp;title=cxtpcontrol-setenable-issue#34321</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPControl -&gt; SetEnable issue : Hi:  Please seefollowing code:  ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10383&amp;PID=34317&amp;title=cxtpcontrol-setenable-issue#34317</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4133">apple</a><br /><strong>Subject:</strong> 10383<br /><strong>Posted:</strong> 28 April 2008 at 8:23am<br /><br />Hi:<DIV>&nbsp;&nbsp; Please see&nbsp;following code:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp; CMainFrame* pMainFrame = (CMainFrame*)AfxGetMainWnd();<BR>&nbsp;&nbsp; CXTPCommandBars* pCommandBars = pMainFrame-&gt;GetCommandBars();<BR>&nbsp;&nbsp; CXTPControl&nbsp; * button= pCommandBars-&gt;FindControl(xtpControlButton,ID_MYID,true,true);<BR>&nbsp;&nbsp;&nbsp;button-&gt;<FONT color=#00cc33>SetEnabled(false);</FONT></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp; *ID_MYID: user_defined resource ID.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;I try many ways, <FONT color=#00cc33>SetEnable</FONT> seems as if&nbsp;<FONT color=#00cc33>&nbsp;</FONT>out of&nbsp;work .&nbsp;i dont know why?</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </DIV><DIV>need your help, thx a lot.</DIV>]]>
   </description>
   <pubDate>Mon, 28 Apr 2008 08:23:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10383&amp;PID=34317&amp;title=cxtpcontrol-setenable-issue#34317</guid>
  </item> 
 </channel>
</rss>