<?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 : Can&#039;t trigger listbox selection in commandbar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Can&#039;t trigger listbox selection in commandbar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 05:57:49 +0000</pubDate>
  <lastBuildDate>Tue, 27 Dec 2011 20:46:00 +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=18519</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[Can&#039;t trigger listbox selection in commandbar : How do you resolve it ?Can you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18519&amp;PID=67288&amp;title=cant-trigger-listbox-selection-in-commandbar#67288</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7236">jintian01</a><br /><strong>Subject:</strong> 18519<br /><strong>Posted:</strong> 27 December 2011 at 8:46pm<br /><br /><P>How do you resolve it ?Can you past your code section to me?</P>]]>
   </description>
   <pubDate>Tue, 27 Dec 2011 20:46:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18519&amp;PID=67288&amp;title=cant-trigger-listbox-selection-in-commandbar#67288</guid>
  </item> 
  <item>
   <title><![CDATA[Can&#039;t trigger listbox selection in commandbar : Yes, this works. Thanks! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18519&amp;PID=64839&amp;title=cant-trigger-listbox-selection-in-commandbar#64839</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1550">dehilster</a><br /><strong>Subject:</strong> 18519<br /><strong>Posted:</strong> 09 June 2011 at 11:35am<br /><br />Yes, this works. &nbsp;Thanks!]]>
   </description>
   <pubDate>Thu, 09 Jun 2011 11:35:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18519&amp;PID=64839&amp;title=cant-trigger-listbox-selection-in-commandbar#64839</guid>
  </item> 
  <item>
   <title><![CDATA[Can&#039;t trigger listbox selection in commandbar : Thanks! I saw that one but only...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18519&amp;PID=64838&amp;title=cant-trigger-listbox-selection-in-commandbar#64838</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1550">dehilster</a><br /><strong>Subject:</strong> 18519<br /><strong>Posted:</strong> 09 June 2011 at 11:07am<br /><br />Thanks! &nbsp;I saw that one but only now realize the list box was the undo buttons. &nbsp;I will let you know how it works out.]]>
   </description>
   <pubDate>Thu, 09 Jun 2011 11:07:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18519&amp;PID=64838&amp;title=cant-trigger-listbox-selection-in-commandbar#64838</guid>
  </item> 
  <item>
   <title><![CDATA[Can&#039;t trigger listbox selection in commandbar : Hi,Please check CommandBars\ListBoxSamples....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18519&amp;PID=64831&amp;title=cant-trigger-listbox-selection-in-commandbar#64831</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 18519<br /><strong>Posted:</strong> 09 June 2011 at 7:34am<br /><br />Hi,<div><br></div><div>Please check CommandBars\ListBoxSamples.</div>]]>
   </description>
   <pubDate>Thu, 09 Jun 2011 07:34:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18519&amp;PID=64831&amp;title=cant-trigger-listbox-selection-in-commandbar#64831</guid>
  </item> 
  <item>
   <title><![CDATA[Can&#039;t trigger listbox selection in commandbar : Looking at the samples, I am trying...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18519&amp;PID=64823&amp;title=cant-trigger-listbox-selection-in-commandbar#64823</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1550">dehilster</a><br /><strong>Subject:</strong> 18519<br /><strong>Posted:</strong> 08 June 2011 at 9:33pm<br /><br />Looking at the samples, I am trying to trigger and event with this code:<div><br><div><div><span ="Apple-tab-span" style="white-space:pre">	</span>ON_LBN_SELCHANGE(ID_LISTER_BOX, OnListerSelect)</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>ON_UPDATE_COMMAND_UI(ID_LISTER, OnUpdateLister)</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>ON_UPDATE_COMMAND_UI(ID_LISTER_BOX, OnUpdateLister)</div></div><div><br></div><div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CXTPToolBar* pToolBarListBox = pCommandBars-&gt;Add(_T("ListBox"), xtpBarTop);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>pToolBarListBox-&gt;GetControls()-&gt;Add(xtpControlLabel, 0)-&gt;SetCaption(_T("CXTPControlListBox:"));</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CXTPControlPopup* pPopup = (CXTPControlPopup*)pToolBarListBox-&gt;GetControls()-&gt;Add(xtpControlPopup, ID_LISTER);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>pPopup-&gt;SetCaption(_T("ListBox"));</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CXTPControlListBox* pListBox = (CXTPControlListBox*)pPopup-&gt;GetCommandBar()-&gt;GetControls()-&gt;Add(new CXTPControlListBox, ID_LISTER_BOX);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>pListBox-&gt;GetListCtrl()-&gt;AddString(_T("Item 1"));</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>pListBox-&gt;GetListCtrl()-&gt;AddString(_T("Item 2"));</div></div><div><br></div><div><div>void CMainFrame::OnListerSelect() {</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>int i = 0; &nbsp;// this is just a <b>BREAKPOINT</b></div><div>}</div><div><br></div><div>void CMainFrame::OnUpdateLister(CCmdUI* pCmdUI)&nbsp;</div><div>{</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>pCmdUI-&gt;Enable(true);</div><div>}</div></div><div><br></div><div>However, it never makes it to <b>BREAKPOINT</b></div><div><br></div><div>I need to get an event triggered in choosing a list item in a command bar.</div></div><div><br></div><div>Help!</div><div><br></div><div>-David</div><div>&nbsp;Long Beach, CA</div>]]>
   </description>
   <pubDate>Wed, 08 Jun 2011 21:33:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18519&amp;PID=64823&amp;title=cant-trigger-listbox-selection-in-commandbar#64823</guid>
  </item> 
 </channel>
</rss>