<?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 : Button not getting dissabled</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Button not getting dissabled]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 17 Apr 2026 20:54:46 +0000</pubDate>
  <lastBuildDate>Wed, 02 Jul 2008 09:42:40 +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=11281</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[Button not getting dissabled : Add some variable m_bSaveEnabled...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11281&amp;PID=37715&amp;title=button-not-getting-dissabled#37715</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11281<br /><strong>Posted:</strong> 02 July 2008 at 9:42am<br /><br />Add some variable m_bSaveEnabled and code <DIV>&nbsp;</DIV><DIV>CMainFrame::OnUpdateBtnSelectionShowHide(CCmdUI* pCmdUI)</DIV><DIV>{</DIV><DIV>&nbsp; pCmdUI-&gt;SetEnabled(m_bSaveEndbled);</DIV><DIV>};</DIV><DIV>&nbsp;</DIV><DIV>now you can change variable m_bSaveEnabled to Enable/Disable tis button.</DIV>]]>
   </description>
   <pubDate>Wed, 02 Jul 2008 09:42:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11281&amp;PID=37715&amp;title=button-not-getting-dissabled#37715</guid>
  </item> 
  <item>
   <title><![CDATA[Button not getting dissabled : hello,  I have created one CXTPControlButton...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11281&amp;PID=37709&amp;title=button-not-getting-dissabled#37709</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4248">vijaymahajan</a><br /><strong>Subject:</strong> 11281<br /><strong>Posted:</strong> 02 July 2008 at 6:30am<br /><br />hello, <DIV>I have created one CXTPControlButton in ribbon bar by using this code.</DIV><FONT size=2><P>pSaveSelButton = pGroupEnhancementMode-&gt;AddxtpControlButton,ID_BTN_SAVESELECTION);pSaveSelButton-&gt;SetStyle(xtpButtonIcon);pSaveSelButton-&gt;SetWidth(40);pSaveSelButton-&gt;SetHeight(60);pSaveSelButton-&gt;SetTooltip(_T("Save Selection"));pSaveSelButton-&gt;SetEnabled(FALSE); </P><DIV></DIV><P>Then i wrote the empty ON_UPDATE_COMMAND_UI event handler. that time it was appearing dissabled.it was like this - <FONT color=#0000ff size=2>void</FONT><FONT size=2> CMainFrame::OnUpdateBtnSelectionShowHide(CCmdUI* pCmdUI){};</P></FONT><DIV>But when i write ON_BN_CLICKED event handler for this button,it doesnt remain dissabled initially.i want that button to be dissabled initially,but afterwords i want&nbsp;it enable,when i will say SetEnable(true).</DIV><DIV>How can i do that,please let me know.Please explain in detail.</DIV><DIV>&nbsp;</DIV><DIV>Thanks And Regards,</DIV><DIV>Vijay.</FONT></DIV>]]>
   </description>
   <pubDate>Wed, 02 Jul 2008 06:30:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11281&amp;PID=37709&amp;title=button-not-getting-dissabled#37709</guid>
  </item> 
 </channel>
</rss>