<?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 : clicking disabled button in toolbar?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : clicking disabled button in toolbar?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 03 Apr 2026 23:56:24 +0000</pubDate>
  <lastBuildDate>Fri, 08 Jun 2007 06:19:24 +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=7331</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[clicking disabled button in toolbar? : Hi Oleg,  Many Thanks. It works....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7331&amp;PID=23530&amp;title=clicking-disabled-button-in-toolbar#23530</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2969">Ashok</a><br /><strong>Subject:</strong> 7331<br /><strong>Posted:</strong> 08 June 2007 at 6:19am<br /><br />Hi Oleg,<DIV>&nbsp;&nbsp; Many Thanks. It works.</DIV>]]>
   </description>
   <pubDate>Fri, 08 Jun 2007 06:19:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7331&amp;PID=23530&amp;title=clicking-disabled-button-in-toolbar#23530</guid>
  </item> 
  <item>
   <title><![CDATA[clicking disabled button in toolbar? : Hi,  with CommandBars you need...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7331&amp;PID=23527&amp;title=clicking-disabled-button-in-toolbar#23527</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7331<br /><strong>Posted:</strong> 08 June 2007 at 6:02am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>with CommandBars you need somthing like<BR></DIV><DIV>CXTPControl* pControl = GetControls()-&gt;HitTest(point);<BR>if (pControl &amp;&amp; !pControl-&gt;GetEnabled())</DIV><DIV>&nbsp;&nbsp;&nbsp; return;<BR></DIV>]]>
   </description>
   <pubDate>Fri, 08 Jun 2007 06:02:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7331&amp;PID=23527&amp;title=clicking-disabled-button-in-toolbar#23527</guid>
  </item> 
  <item>
   <title><![CDATA[clicking disabled button in toolbar? : Hi, I have a problem when I am...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7331&amp;PID=23522&amp;title=clicking-disabled-button-in-toolbar#23522</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2969">Ashok</a><br /><strong>Subject:</strong> 7331<br /><strong>Posted:</strong> 08 June 2007 at 4:07am<br /><br />Hi,<DIV>I have a problem when I am clicking the toolbar button. When I am going to click the disabled toolbar button I need to do the below code. But the commandbar doesn't supporting the code which is in red color (please see the below code). Is there is any alternate way in the commandbar code.</DIV><DIV>&nbsp;</DIV><DIV>Note: Whenever I am going to click the disabled button it should not do anything.</DIV><DIV>&nbsp;</DIV><DIV>The below code is in OnLButtonDown(...)</DIV><DIV><FONT size=2><P>TOOLINFO ti = { 0 };</P><P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nHit = OnToolHitTest( point, &amp;ti );</P><P></FONT><FONT color=#006600 size=2>int</FONT><FONT size=2><FONT color=#006600> nDex = CommandToIndex( nHit );</FONT></P><P></FONT><FONT color=#006600 size=2>if</FONT><FONT size=2><FONT color=#006600> ( -1 &lt; nDex &amp;&amp; ( TBBS_DISABLED &amp; GetButtonStyle( nDex )))</FONT></P><P></FONT><FONT color=#006600><FONT size=2>return</FONT><FONT size=2>;</P></FONT></FONT></DIV>]]>
   </description>
   <pubDate>Fri, 08 Jun 2007 04:07:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7331&amp;PID=23522&amp;title=clicking-disabled-button-in-toolbar#23522</guid>
  </item> 
 </channel>
</rss>