<?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 : LoadCommandBars and customized butt&#111;n</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : LoadCommandBars and customized butt&#111;n]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 17 Apr 2026 10:33:07 +0000</pubDate>
  <lastBuildDate>Thu, 13 Apr 2006 07:58:26 +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=3991</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[LoadCommandBars and customized butt&#111;n : Hello, If m_MenuEntries is dynamic...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3991&amp;PID=12154&amp;title=loadcommandbars-and-customized-button#12154</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3991<br /><strong>Posted:</strong> 13 April 2006 at 7:58am<br /><br /><P>Hello,</P><P>If <SPAN style="FONT-FAMILY: Courier New,Courier,mono">m_MenuEntries is dynamic menu, you can fill items before user popup menu with these items.</SPAN></P><P><SPAN style="FONT-FAMILY: Courier New,Courier,mono">See source of Samples\CommandBars\DynamicPopups\ControlUndo.cpp how to fill items dynamically before they become visible.</SPAN></P>]]>
   </description>
   <pubDate>Thu, 13 Apr 2006 07:58:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3991&amp;PID=12154&amp;title=loadcommandbars-and-customized-button#12154</guid>
  </item> 
  <item>
   <title><![CDATA[LoadCommandBars and customized butt&#111;n : Hi, thx for helpI Have already...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3991&amp;PID=12153&amp;title=loadcommandbars-and-customized-button#12153</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=479">jerry2000</a><br /><strong>Subject:</strong> 3991<br /><strong>Posted:</strong> 13 April 2006 at 4:39am<br /><br />Hi, thx for help<br><br>I Have already overwritten the Copy method.<br><br>The DoPropExchange method is not interresing for me, because i have no static information to store. I have only dynamical information (for example in the posted source: "<span style="font-family: Courier New,Courier,mono;">m_MenuEntries" is </span>a collection of objects of inserted USB sticks).<br><br>Should i go through the tollbar buttons, and set the members with a new function?<br><br>]]>
   </description>
   <pubDate>Thu, 13 Apr 2006 04:39:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3991&amp;PID=12153&amp;title=loadcommandbars-and-customized-button#12153</guid>
  </item> 
  <item>
   <title><![CDATA[LoadCommandBars and customized butt&#111;n :  Hello, you have to override...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3991&amp;PID=12142&amp;title=loadcommandbars-and-customized-button#12142</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3991<br /><strong>Posted:</strong> 12 April 2006 at 7:42am<br /><br /><P>&nbsp;</P><P>Hello, you have to override void DoPropExchange and Copy methods and implement save/restore logic for your control.</P>]]>
   </description>
   <pubDate>Wed, 12 Apr 2006 07:42:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3991&amp;PID=12142&amp;title=loadcommandbars-and-customized-button#12142</guid>
  </item> 
  <item>
   <title><![CDATA[LoadCommandBars and customized butt&#111;n : I have some problems with LoadCommandBars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3991&amp;PID=12139&amp;title=loadcommandbars-and-customized-button#12139</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=479">jerry2000</a><br /><strong>Subject:</strong> 3991<br /><strong>Posted:</strong> 12 April 2006 at 6:13am<br /><br /><span style="font-family: Courier New,Courier,mono;">I have some problems with LoadCommandBars and my own XTPControlButton's.</span><br style="font-family: Courier New,Courier,mono;"><br style="font-family: Courier New,Courier,mono;"><span style="font-family: Courier New,Courier,mono;">I my own class CControlVarMenu derived from CXTPControlButton. In&nbsp; OnCreateControl I create my objects:</span><br style="font-family: Courier New,Courier,mono;"><br style="font-family: Courier New,Courier,mono;"><div style="margin-left: 40px;"><span style="font-family: Courier New,Courier,mono;">if(lpCreateControl-&gt;nID == ID_POPUP_SEND)</span><br style="font-family: Courier New,Courier,mono;"><span style="font-family: Courier New,Courier,mono;">{</span><br style="font-family: Courier New,Courier,mono;"><span style="font-family: Courier New,Courier,mono;">lpCreateControl-&gt;pControl = new CControlVarMenu(&amp;m_MenuEntries, VM_SEND);</span><br style="font-family: Courier New,Courier,mono;"><span style="font-family: Courier New,Courier,mono;">return TRUE;</span><br style="font-family: Courier New,Courier,mono;"><span style="font-family: Courier New,Courier,mono;">}</span><br style="font-family: Courier New,Courier,mono;"></div><br style="font-family: Courier New,Courier,mono;"><span style="font-family: Courier New,Courier,mono;">You see the 2 parameters in the constructor.</span><br style="font-family: Courier New,Courier,mono;"><br style="font-family: Courier New,Courier,mono;"><span style="font-family: Courier New,Courier,mono;">All work very well until the user makes a customization of the toolbar. After</span><br style="font-family: Courier New,Courier,mono;"><span style="font-family: Courier New,Courier,mono;">LoadCommandBars the constructor of my objects is now called with NULL in the</span><br style="font-family: Courier New,Courier,mono;"><span style="font-family: Courier New,Courier,mono;">parameter (without calling OnCreateControl).</span><br style="font-family: Courier New,Courier,mono;"><span style="font-family: Courier New,Courier,mono;">When the button on the toolbar is pressed, the member variables of my button</span><br style="font-family: Courier New,Courier,mono;"><span style="font-family: Courier New,Courier,mono;">objects are not set!</span><br style="font-family: Courier New,Courier,mono;"><br style="font-family: Courier New,Courier,mono;"><span style="font-family: Courier New,Courier,mono;">What is the correct way to set the member variables of my CXTPControlButton</span><br style="font-family: Courier New,Courier,mono;"><span style="font-family: Courier New,Courier,mono;">object after a LoadCommandBars?</span><br style="font-family: Courier New,Courier,mono;"><br style="font-family: Courier New,Courier,mono;"><span style="font-family: Courier New,Courier,mono;">thank you</span><br>]]>
   </description>
   <pubDate>Wed, 12 Apr 2006 06:13:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3991&amp;PID=12139&amp;title=loadcommandbars-and-customized-button#12139</guid>
  </item> 
 </channel>
</rss>