<?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 : CXTPC&#111;ntrolComboBox - SetEnabled questi&#111;n</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CXTPC&#111;ntrolComboBox - SetEnabled questi&#111;n]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 09:06:57 +0000</pubDate>
  <lastBuildDate>Wed, 10 Nov 2004 07:22:41 +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=1394</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[CXTPC&#111;ntrolComboBox - SetEnabled questi&#111;n :  Why is SetEnabled in CXTPControlComboBox...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1394&amp;PID=3943&amp;title=cxtpcontrolcombobox-setenabled-question#3943</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=757">krulle</a><br /><strong>Subject:</strong> 1394<br /><strong>Posted:</strong> 10 November 2004 at 7:22am<br /><br /><FONT size=1><P>Why is SetEnabled in CXTPControlComboBox a protected method?</P><P>In my case,&nbsp;I have a CXTPToolBar in a CDialog derived class. I want to manually disable it from the dialog code using a CXTPControlComboBox pointer like this:</P><FONT size=1><P>m_ModeList</FONT><FONT color=#ff0000 size=1>-&gt;</FONT><FONT size=1>SetEnabled</FONT><FONT color=#ff0000 size=1>(</FONT><FONT size=1>FALSE</FONT><FONT color=#ff0000 size=1>);</FONT></P><P><FONT color=#ff0000 size=1><FONT color=#000000>I can't do this since SetEnabled is protected in the CXTPControlComboBox class. A "workaround" is to cast the pointer to a CXTPControlPopup pointer and call the public version of SetEnabled there but such code doesn't look good even if it works in this case.</FONT></FONT></P><FONT color=#ff0000 size=1><FONT color=#ff0000 size=1><P>((</FONT><FONT color=#000000 size=1>CXTPControlPopup</FONT><FONT color=#ff0000 size=1>*)</FONT><FONT color=#000000 size=1>m_ModeList</FONT><FONT color=#ff0000 size=1>)-&gt;</FONT><FONT color=#000000 size=1>SetEnabled</FONT><FONT color=#ff0000 size=1>(</FONT><FONT color=#000000 size=1>FALSE</FONT><FONT color=#ff0000 size=1>);</FONT></P><P><FONT color=#ff0000 size=1><FONT color=#000000>Is there a better way to disable a CXTPControlComboBox (without using update handler)?</FONT></FONT></P></FONT></FONT>]]>
   </description>
   <pubDate>Wed, 10 Nov 2004 07:22:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1394&amp;PID=3943&amp;title=cxtpcontrolcombobox-setenabled-question#3943</guid>
  </item> 
 </channel>
</rss>