<?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 : How to catch ComboBox&#039;s messages</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : How to catch ComboBox&#039;s messages]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 03:53:33 +0000</pubDate>
  <lastBuildDate>Fri, 16 May 2008 13:42: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=10640</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[How to catch ComboBox&#039;s messages : For ON_NOTIFY, the CBN_* determines...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10640&amp;PID=35317&amp;title=how-to-catch-comboboxs-messages#35317</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3717">Smucker</a><br /><strong>Subject:</strong> 10640<br /><strong>Posted:</strong> 16 May 2008 at 1:42pm<br /><br /><font face="Arial, Helvetica, sans-serif">For ON_NOTIFY, the CBN_* determines the event (drop down in this case,so I fill the list in FillLocationCombo).<br><br></font><font face="Arial, Helvetica, sans-serif">ON_XTP_EXECUTE occurs when the selection is made (picked or typed).<br><br></font><font face="Arial, Helvetica, sans-serif">You canget the control using:<br><br><font face="Courier New, Courier, mono">CXTPControlComboBox *pcombo = (CXTPControlComboBox *)(((NMXTPCONTROL*)pnmh)-&gt;pControl)</font><br></font><font face="Arial, Helvetica, sans-serif"><br>Here is an example from my code:<br><br><font face="Courier New, Courier, mono">afx_msg void CMainFrame::HandleLocationCombo(NMHDR* pnmh, LRESULT *pres)<br>{<br>&nbsp;&nbsp;&nbsp; CXTPControlComboBox *pcombo = (CXTPControlComboBox *)(((NMXTPCONTROL*)pnmh)-&gt;pControl);<br>&nbsp;&nbsp;&nbsp; if (pcombo) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ASSERT(pcombo-&gt;GetType() == xtpControlComboBox);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CString foldername = pcombo-&gt;GetEditText();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_tree.PositionToFolder(foldername);<br>&nbsp;&nbsp;&nbsp; }<br>}<br></font></font>]]>
   </description>
   <pubDate>Fri, 16 May 2008 13:42:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10640&amp;PID=35317&amp;title=how-to-catch-comboboxs-messages#35317</guid>
  </item> 
  <item>
   <title><![CDATA[How to catch ComboBox&#039;s messages : Hi,  Check CustomThemes sampe....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10640&amp;PID=35277&amp;title=how-to-catch-comboboxs-messages#35277</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10640<br /><strong>Posted:</strong> 16 May 2008 at 1:29am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Check CustomThemes sampe. It has Combos and handlers.</DIV>]]>
   </description>
   <pubDate>Fri, 16 May 2008 01:29:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10640&amp;PID=35277&amp;title=how-to-catch-comboboxs-messages#35277</guid>
  </item> 
  <item>
   <title><![CDATA[How to catch ComboBox&#039;s messages :  Hi, HTHCan I have more hint...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10640&amp;PID=35264&amp;title=how-to-catch-comboboxs-messages#35264</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2757">yoshinaga</a><br /><strong>Subject:</strong> 10640<br /><strong>Posted:</strong> 15 May 2008 at 9:21pm<br /><br />Hi, HTH<br><br>Can I have more hint ablout <font face="Courier New, Courier, mono">HandleLocationCombo, </font><font face="Courier New, Courier, mono">FillLocationCombo.<br><br></font>CMainFrame::<font face="Courier New, Courier, mono">HandleLocationCombo</font>(NMHDR* pNMHDR, LRESULT* pResult)<br>but How can I now this event is occured for which reason?<br><br>Thanks a lot.<br>]]>
   </description>
   <pubDate>Thu, 15 May 2008 21:21:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10640&amp;PID=35264&amp;title=how-to-catch-comboboxs-messages#35264</guid>
  </item> 
  <item>
   <title><![CDATA[How to catch ComboBox&#039;s messages : Here are the ones I&amp;#039;m using:ON_NOTIFY(CBN_DROPDOWN,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10640&amp;PID=35261&amp;title=how-to-catch-comboboxs-messages#35261</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3717">Smucker</a><br /><strong>Subject:</strong> 10640<br /><strong>Posted:</strong> 15 May 2008 at 3:56pm<br /><br />Here are the ones I'm using:<br><br><blockquote><font face="Courier New, Courier, mono">ON_NOTIFY(CBN_DROPDOWN, CMD_TREE_LOCATION, FillLocationCombo)</font><br><font face="Courier New, Courier, mono">ON_XTP_EXECUTE(CMD_TREE_LOCATION, HandleLocationCombo)</font><br></blockquote>HTH.<br><br>]]>
   </description>
   <pubDate>Thu, 15 May 2008 15:56:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10640&amp;PID=35261&amp;title=how-to-catch-comboboxs-messages#35261</guid>
  </item> 
  <item>
   <title><![CDATA[How to catch ComboBox&#039;s messages : Hello,A really silly question,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10640&amp;PID=35253&amp;title=how-to-catch-comboboxs-messages#35253</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2757">yoshinaga</a><br /><strong>Subject:</strong> 10640<br /><strong>Posted:</strong> 15 May 2008 at 1:26pm<br /><br />Hello,<br><br>A really silly question, but I don't know at all.<br>I have a combobox in command bars, created in CMainFrame::OnCreate like this,<br><br>&nbsp;&nbsp;&nbsp; m_pComboYear = (CXTPControlComboBox*)m_pToolBar-&gt;GetControls()-&gt;Add(xtpControlComboBox,ID_YEAR);<br><br><br>I found ListBoxSample, but XTP_LBN_SELCHANGE is used for <a href="CXTPC&#111;ntrolListBox.html" target="_blank">CXTPControlListBox</a>.<br><br>How can I get notify when combo box changed selection?<br><br><br>]]>
   </description>
   <pubDate>Thu, 15 May 2008 13:26:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10640&amp;PID=35253&amp;title=how-to-catch-comboboxs-messages#35253</guid>
  </item> 
 </channel>
</rss>