<?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 : CXTPControlComboBox in commandbar issue</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CXTPControlComboBox in commandbar issue]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 17:18:15 +0000</pubDate>
  <lastBuildDate>Wed, 25 Jun 2008 18:55:36 +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=11205</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[CXTPControlComboBox in commandbar issue : Oleg - this kind of thing needs...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11205&amp;PID=37418&amp;title=cxtpcontrolcombobox-in-commandbar-issue#37418</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4140">JerryEvans</a><br /><strong>Subject:</strong> 11205<br /><strong>Posted:</strong> 25 June 2008 at 6:55pm<br /><br />Oleg - this kind of thing needs to be documented. Given that the commandbar setup persists over the lifetime of the frame window storing a pointer is not completely unreasonable. perhaps a bit devil may care but not entirely stupid. :-)]]>
   </description>
   <pubDate>Wed, 25 Jun 2008 18:55:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11205&amp;PID=37418&amp;title=cxtpcontrolcombobox-in-commandbar-issue#37418</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPControlComboBox in commandbar issue : Hi,  Its quite dangerous to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11205&amp;PID=37411&amp;title=cxtpcontrolcombobox-in-commandbar-issue#37411</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11205<br /><strong>Posted:</strong> 25 June 2008 at 3:41pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Its quite dangerous to save pointer to combobox this way - after you load state it will be not valid, or your user can remove it from toolbar.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 25 Jun 2008 15:41:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11205&amp;PID=37411&amp;title=cxtpcontrolcombobox-in-commandbar-issue#37411</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPControlComboBox in commandbar issue : I&amp;#039;ve got 2 problems - any...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11205&amp;PID=37405&amp;title=cxtpcontrolcombobox-in-commandbar-issue#37405</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4140">JerryEvans</a><br /><strong>Subject:</strong> 11205<br /><strong>Posted:</strong> 25 June 2008 at 9:19am<br /><br />I've got 2 problems - any pointers appreciated.<br><br>Background:<br><br>In my CXTPFrameWnd derived frame class I create a command bar with an embedded CXTPControlComboBox. This displays itself properly and can be accessed in the ON_XTP_EXECUTE() handler embedded in my view class. I store the pointer to the combo box in the frame class. Call it m_pAddress.<br><br>1. I set up an accelerator to set focus to the combo box - in the event handler if I call m_pAddress-&gt;SetFocused(TRUE) then I get a fault <br><br>2. In my OnClose handler in the frame class I want to read and store the combo contents. Again if I call m_pAddress-&gt;GetCount() I get an exception. The debugger shows my that the pointer to the commandbar instance is garbage.<br><br>Question: Is the pointer returned by CXTPToolbar-&gt;GetControls()-&gt;Add() a temporary ? <br><br>Also WTH is the Post New Topic editor so bloody small????? <br><br>THx.<br><br>]]>
   </description>
   <pubDate>Wed, 25 Jun 2008 09:19:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11205&amp;PID=37405&amp;title=cxtpcontrolcombobox-in-commandbar-issue#37405</guid>
  </item> 
 </channel>
</rss>