<?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 : Toolbar ComboBox event</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Toolbar ComboBox event]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 04:01:18 +0000</pubDate>
  <lastBuildDate>Thu, 29 Oct 2009 06:52:43 +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=15479</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[Toolbar ComboBox event : See CustomThemes sample:  ON_XTP_EXECUTE(ID_EDIT_STATE,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15479&amp;PID=54304&amp;title=toolbar-combobox-event#54304</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15479<br /><strong>Posted:</strong> 29 October 2009 at 6:52am<br /><br />See CustomThemes sample:<DIV>&nbsp;</DIV><DIV>ON_XTP_EXECUTE(ID_EDIT_STATE, OnEditState)<BR></DIV><DIV>void CMainFrame::OnEditState(NMHDR* pNMHDR, LRESULT* pResult)<BR>{<BR>&nbsp;NMXTPCONTROL* tagNMCONTROL = (NMXTPCONTROL*)pNMHDR;</DIV><DIV>&nbsp;CXTPControlComboBox* pControl = (CXTPControlComboBox*)tagNMCONTROL-&gt;pControl;<BR>&nbsp;if (pControl-&gt;GetType() == xtpControlComboBox)<BR>&nbsp;{<BR>&nbsp;&nbsp;int nState = pControl-&gt;GetCurSel();<BR>&nbsp;&nbsp;if (nState != 2)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;m_nState = nState;<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;else<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;MessageBox(_T("Configuration Manager"));<BR>&nbsp;&nbsp;&nbsp;pControl-&gt;SetCurSel(m_nState);<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;*pResult = TRUE; // Handled<BR>&nbsp;}<BR>}</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 29 Oct 2009 06:52:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15479&amp;PID=54304&amp;title=toolbar-combobox-event#54304</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbar ComboBox event : Hi,   this is call stack ,   and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15479&amp;PID=54273&amp;title=toolbar-combobox-event#54273</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5572">suchout</a><br /><strong>Subject:</strong> 15479<br /><strong>Posted:</strong> 28 October 2009 at 3:18am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>this is call stack , </DIV><DIV><img src="http://forum.codejock.com/uploads/20091028_032008_ee.jpg" border="0"></DIV><DIV>and i use toolkit v13.1.0</DIV><DIV>&nbsp;</DIV><DIV>and i can't found ON_XTP_EXECUTE ....</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 28 Oct 2009 03:18:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15479&amp;PID=54273&amp;title=toolbar-combobox-event#54273</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbar ComboBox event : Hi,  Please. click Retry and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15479&amp;PID=54265&amp;title=toolbar-combobox-event#54265</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15479<br /><strong>Posted:</strong> 28 October 2009 at 2:48am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Please. click Retry and show full stack.</DIV><DIV>What Toolkit version do you have ?</DIV><DIV>&nbsp;</DIV><DIV>btw its not very good way to determine what control was executed. Search in our samples ON_XTP_EXECUTE.</DIV>]]>
   </description>
   <pubDate>Wed, 28 Oct 2009 02:48:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15479&amp;PID=54265&amp;title=toolbar-combobox-event#54265</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbar ComboBox event : Hi,   &amp;lt;in dll &amp;gt; i developed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15479&amp;PID=54263&amp;title=toolbar-combobox-event#54263</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5572">suchout</a><br /><strong>Subject:</strong> 15479<br /><strong>Posted:</strong> 28 October 2009 at 2:10am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>&lt;in dll &gt;</DIV><DIV>i developed combobox in&nbsp; toolbar and add&nbsp;three items in combobox.</DIV><DIV>&nbsp;</DIV><DIV><DIV><strong>&nbsp;&nbsp; CXTPControlComboBox* pControlCombo = (CXTPControlComboBox*)m_pToolBar-&gt;GetControls()-&gt;Add(xtpControlComboBox , m_ToolbarID&#091;0&#093;);&nbsp;<BR>&nbsp;&nbsp;&nbsp;pControlCombo-&gt;AddString(_T("abc"));<BR>&nbsp;&nbsp;&nbsp;pControlCombo-&gt;AddString(_T("def"));<BR>&nbsp;&nbsp;&nbsp;pControlCombo-&gt;AddString(_T("hij"));</strong>&nbsp;</DIV></DIV><DIV>&nbsp;</DIV><DIV><DIV>&lt;in main program&gt;</DIV></DIV><DIV>when i execute program , i clicked one item of three items&nbsp; </DIV><DIV>&nbsp;<img src="http://forum.codejock.com/uploads/20091028_015657_aa.jpg" border="0"></DIV><DIV>&nbsp;</DIV><DIV>in Event handling , catched combobox's id.</DIV><DIV>&nbsp;</DIV><DIV>and show item text in messagebox ,</DIV><DIV>&nbsp;</DIV><DIV><strong>&nbsp;ON_COMMAND_EX_RANGE(MSG_START, MSG_END, OnUserId)</strong></DIV><DIV><strong></strong>&nbsp;</DIV><DIV><strong>int CTEST1App::OnUserId(UINT nID)<BR>{<BR>&nbsp;&nbsp; &nbsp;int rtn;<BR>&nbsp;&nbsp; &nbsp;EVENT_Info eventinfo;<BR>&nbsp;&nbsp; &nbsp;CMainFrame *pFrame = (CMainFrame*)AfxGetMainWnd(); <BR>&nbsp;&nbsp; &nbsp;rtn = 1;</strong></DIV><DIV><strong>&nbsp;&nbsp; &nbsp;switch(nID) {</strong></DIV><DIV><strong>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; ...<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;case ID_TB_COMBO1:</strong></DIV><BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr><DIV><strong>&nbsp;&nbsp;&nbsp;&nbsp;CString str(_T(""));&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;CXTPToolBar *pTb;</strong></DIV><DIV><strong>&nbsp;&nbsp;&nbsp;&nbsp;for (int i = 1; i &lt; theApp.m_pCmdBars-&gt;GetCount(); i++) {<BR>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;pTb = (CXTPToolBar *)theApp.m_pCmdBars-&gt;GetAt(i);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (int j = 0; j&lt; pTb-&gt;GetControls()-&gt;GetCount(); j++) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int a = pTb-&gt;GetControl(j)-&gt;GetID();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (a == ID_TB_COMBO1) {<BR>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPControlComboBox *pComboCtrl = (CXTPControlComboBox *)pTb-&gt;GetControl(j);<BR>&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pComboCtrl-&gt;GetLBText(pComboCtrl-&gt;GetSelected() + 1, str);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;AfxMessageBox(str);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;}</strong></DIV></BLOCKQUOTE><DIV><strong>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;</strong></DIV><DIV><strong>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...</strong></DIV><DIV><strong>&nbsp;&nbsp; &nbsp; }</strong></DIV><DIV><strong></strong>&nbsp;</DIV><DIV><strong>}</strong></DIV><DIV>&nbsp;</DIV><DIV><strong></strong>&nbsp;<img src="http://forum.codejock.com/uploads/20091028_015924_bb.jpg" border="0"></DIV><DIV>&nbsp;</DIV><DIV>and <SPAN =tts_area>An unknown error has occured.</SPAN></DIV><DIV><SPAN =tts_area></SPAN>&nbsp;<img src="http://forum.codejock.com/uploads/20091028_020122_cc.jpg" border="0"></DIV><DIV><SPAN =tts_area></SPAN>&nbsp;</DIV><DIV>&nbsp;.. &#12640;&#12640; i think i have&nbsp;a hole in my head..</DIV><DIV>&nbsp;</DIV><DIV>please help me..</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 28 Oct 2009 02:10:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15479&amp;PID=54263&amp;title=toolbar-combobox-event#54263</guid>
  </item> 
 </channel>
</rss>