<?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 : ComboBox in Toolbar - not calling OnSelChanged()</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : ComboBox in Toolbar - not calling OnSelChanged()]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 21:47:36 +0000</pubDate>
  <lastBuildDate>Mon, 06 Jul 2009 01:30:22 +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=14665</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[ComboBox in Toolbar - not calling OnSelChanged() : Hi,  So did you actually change...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14665&amp;PID=50691&amp;title=combobox-in-toolbar-not-calling-onselchanged#50691</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14665<br /><strong>Posted:</strong> 06 July 2009 at 1:30am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>So did you actually change selection or just open and close it ?</DIV>]]>
   </description>
   <pubDate>Mon, 06 Jul 2009 01:30:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14665&amp;PID=50691&amp;title=combobox-in-toolbar-not-calling-onselchanged#50691</guid>
  </item> 
  <item>
   <title><![CDATA[ComboBox in Toolbar - not calling OnSelChanged() :   I added a derived ComboBox...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14665&amp;PID=50547&amp;title=combobox-in-toolbar-not-calling-onselchanged#50547</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5336">tralfaz</a><br /><strong>Subject:</strong> 14665<br /><strong>Posted:</strong> 01 July 2009 at 6:47pm<br /><br />I added a derived ComboBox to a toolbar. The OnSelChanged virtual function is not being called after the dropdown closes up. Am I missing a flag? Is there still no way for MainFrm to be notified when a ComboBox changes?<br><br>//.h<br>class XComboBox: public CXTPControlComboBox<br>{<br>public:<br>&nbsp;&nbsp;&nbsp; XComboBox(CXTPCommandBars* pCommandBars = NULL);<br><br>&nbsp;&nbsp;&nbsp; // ClassWizard generated virtual function overrides<br>&nbsp;&nbsp;&nbsp; //{{AFX_VIRTUAL(XComboBox)<br>&nbsp;&nbsp;&nbsp; public:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; virtual void OnSelChanged();<br>&nbsp;&nbsp;&nbsp; //}}AFX_VIRTUAL<br><br>};<br><br>//.cpp<br>XComboBox::XComboBox(CXTPCommandBars* pCommandBars) <br>: CXTPControlComboBox(pCommandBars) <br>{<br>}<br><br>void XComboBox::OnSelChanged()<br>{<br>&nbsp;&nbsp;&nbsp; int index = this-&gt;GetCurSel();<br>&nbsp;&nbsp;&nbsp; CString text;<br>&nbsp;&nbsp;&nbsp; this-&gt;GetLBText(index, text);<br>&nbsp;&nbsp;&nbsp; AfxMessageBox(text);<br>}<br><br>//MainFrm.cpp<br>int CMainFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)<br>{<br>&nbsp;&nbsp;&nbsp; if (lpCreateControl-&gt;bToolBar)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (lpCreateControl-&gt;nID == IDC_FONTCOMBO)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; { <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; XComboBox* pCB = new XComboBox(GetCommandBars());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; lpCreateControl-&gt;pControl = pCB;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return true;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; return 0;<br>}<br>]]>
   </description>
   <pubDate>Wed, 01 Jul 2009 18:47:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14665&amp;PID=50547&amp;title=combobox-in-toolbar-not-calling-onselchanged#50547</guid>
  </item> 
 </channel>
</rss>