<?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 : Questi&#111;n about comboboxes &#111;n toolbars</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Questi&#111;n about comboboxes &#111;n toolbars]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 20:03:19 +0000</pubDate>
  <lastBuildDate>Wed, 05 May 2004 23:48:38 +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=657</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[Questi&#111;n about comboboxes &#111;n toolbars : Agree, it was problem in SetEditText....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=657&amp;PID=1833&amp;title=question-about-comboboxes-on-toolbars#1833</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 657<br /><strong>Posted:</strong> 05 May 2004 at 11:48pm<br /><br /><P>Agree, it was problem in SetEditText. fixed now. </P><P>Your solution is good too.</P>]]>
   </description>
   <pubDate>Wed, 05 May 2004 23:48:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=657&amp;PID=1833&amp;title=question-about-comboboxes-on-toolbars#1833</guid>
  </item> 
  <item>
   <title><![CDATA[Questi&#111;n about comboboxes &#111;n toolbars :  Here is some condensed code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=657&amp;PID=1723&amp;title=question-about-comboboxes-on-toolbars#1723</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 657<br /><strong>Posted:</strong> 25 April 2004 at 5:25pm<br /><br /><br>Here is some condensed code from my program:<br><br><br>&nbsp;&nbsp;&nbsp; ON_XTP_EXECUTE(ID_VIEW_ZOOM, OnViewZoom)<br>&nbsp;&nbsp;&nbsp; ON_UPDATE_COMMAND_UI(ID_VIEW_ZOOM, OnUpdateViewZoom)<br><br><br><br>void CPicView::OnViewZoom(NMHDR* pNMHDR, LRESULT* pResult)<br>{<br>&nbsp;&nbsp;&nbsp; NMXTPCONTROL *tagNMCONTROL = (NMXTPCONTROL *)pNMHDR;<br>&nbsp;&nbsp;&nbsp; CXTPControlComboBox *pControl = reinterpret_cast&lt;CXTPControlComboBox *&gt;(tagNMCONTROL-&gt;pControl);<br>&nbsp;&nbsp;&nbsp; ::SetZoom(pControl-&gt;GetEditText());<br>&nbsp;&nbsp;&nbsp; *pResult = TRUE;<br>}<br><br>void CPicView::OnUpdateViewZoom(CCmdUI* pCmdUI)<br>{<br>&nbsp;&nbsp;&nbsp; CXTPControlComboBox *pControl = reinterpret_cast&lt;CXTPControlComboBox *&gt;(CXTPControl::FromUI(pCmdUI));<br><br>&nbsp;&nbsp;&nbsp; if( ::ShouldBeEnabled ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pCmdUI-&gt;Enable();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if( GetFocus() != pControl-&gt;GetEditCtrl() ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CString str = ::GetZoom();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if( pControl-&gt;GetEditText() != str ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pControl-&gt;GetEditCtrl()-&gt;SetWindowText(str);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; } else {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pControl-&gt;GetEditCtrl()-&gt;SetWindowText("");<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br><br>Now, my question is why do I have to useGetEditCtrl()-&gt;SetWindowText() instead of just SetEditText() ?&nbsp;Calling GetEditText() seems to work just fine to retrieve it, but usingSetEditText() causes all kinds of problems, particularly when I havetwo of the same control on the toolbar and want them to always be insync, and when switching back and forth between two open MDI windowsboth using this view, and thus the zoom combo on the toolbar shouldreflect the active MDI window's view.<br>I think I finally got the code working, using theGetEditCtrl()-&gt;SetWindowText() but I really want to know if I amusing the combobox in the proper way, and why can't I use SetEditText()?<br><br>]]>
   </description>
   <pubDate>Sun, 25 Apr 2004 17:25:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=657&amp;PID=1723&amp;title=question-about-comboboxes-on-toolbars#1723</guid>
  </item> 
 </channel>
</rss>