<?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 : Saving dock state of CXTPCommandBars to registry</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Saving dock state of CXTPCommandBars to registry]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 16 Apr 2026 09:48:47 +0000</pubDate>
  <lastBuildDate>Fri, 08 Dec 2006 10:31:32 +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=5635</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[Saving dock state of CXTPCommandBars to registry : Hi, Any from CommandBars folder....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=18013&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#18013</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5635<br /><strong>Posted:</strong> 08 December 2006 at 10:31am<br /><br />Hi,<DIV>Any from CommandBars folder. Just try to reroduce same problem. or can create new using Appwizard....</DIV>]]>
   </description>
   <pubDate>Fri, 08 Dec 2006 10:31:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=18013&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#18013</guid>
  </item> 
  <item>
   <title><![CDATA[Saving dock state of CXTPCommandBars to registry : Hi Oleg,  Could you please give...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=18010&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#18010</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5635<br /><strong>Posted:</strong> 08 December 2006 at 8:02am<br /><br />Hi Oleg,<DIV>&nbsp;</DIV><DIV>Could you please give me the name of the sample to modify ?</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV>]]>
   </description>
   <pubDate>Fri, 08 Dec 2006 08:02:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=18010&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#18010</guid>
  </item> 
  <item>
   <title><![CDATA[Saving dock state of CXTPCommandBars to registry : Hi,  Sergio, try to find some...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=17910&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#17910</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5635<br /><strong>Posted:</strong> 04 December 2006 at 1:08pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Sergio, try to find some minutes to modify our sample and try reproduce the problem with same code. If sample will fail also, attach changed code here and we will quickly find reason.</DIV><DIV>&nbsp;</DIV><DIV>It is impossible&nbsp; to say why without ability to debug/check what you do in code.</DIV>]]>
   </description>
   <pubDate>Mon, 04 Dec 2006 13:08:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=17910&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#17910</guid>
  </item> 
  <item>
   <title><![CDATA[Saving dock state of CXTPCommandBars to registry : ( &amp;#034;ScreenSize&amp;#034; is easier...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=17902&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#17902</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5635<br /><strong>Posted:</strong> 04 December 2006 at 11:31am<br /><br />( "ScreenSize" is easier to find than "Version" in the registry. )]]>
   </description>
   <pubDate>Mon, 04 Dec 2006 11:31:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=17902&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#17902</guid>
  </item> 
  <item>
   <title><![CDATA[Saving dock state of CXTPCommandBars to registry : There isn&amp;#039;t any &amp;#034;ScreenSize&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=17882&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#17882</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5635<br /><strong>Posted:</strong> 04 December 2006 at 3:57am<br /><br />There isn't any "ScreenSize" in the registry.]]>
   </description>
   <pubDate>Mon, 04 Dec 2006 03:57:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=17882&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#17882</guid>
  </item> 
  <item>
   <title><![CDATA[Saving dock state of CXTPCommandBars to registry : Hi, I stepped into the first...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=17881&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#17881</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5635<br /><strong>Posted:</strong> 04 December 2006 at 3:51am<br /><br /><P>Hi,</P><P>I stepped into the first PX_DWord(&amp;secDockState, _T("Version"), m_dwVersion, 0).</P><P>&nbsp;</P><P>This portion of code :</P><P>&nbsp;&nbsp; void CXTPDockState::DoPropExchange(CXTPPropExchange* pPX)<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPPropExchangeSection secDockState(pPX-&gt;GetSection(_T("DockState")));<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // read/write version info<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (pPX-&gt;IsStoring())<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PX_DWord(&amp;secDockState, _T("Version"), m_dwVersion, 0); ==========&gt; Then stepped into this method :</P><DIV>&nbsp;</DIV><DIV><BR>&nbsp;&nbsp; BOOL CXTPPropExchangeRegistry::ExchangeProp(LPCTSTR pszPropName, VARTYPE vtProp,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; void* pvProp, const void* pvDefault /*= NULL*/)<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_bUseDefaultOnSave = 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...</DIV><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case VT_BOOL:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DWORD dwValue = 0;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CopyPropValue(vtProp, &amp;dwValue, pvProp);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lResult=0 = RegSetValueEx(m_hSectionKey=0xa64, pszPropName="Version", NULL, REG_DWORD, (LPBYTE)&amp;dwValue=18, sizeof(DWORD));<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;</P><DIV>&nbsp;</DIV><DIV><BR>Perhaps the m_hSectionKey doesn't point to the correct registry key ?<BR></DIV>]]>
   </description>
   <pubDate>Mon, 04 Dec 2006 03:51:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=17881&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#17881</guid>
  </item> 
  <item>
   <title><![CDATA[Saving dock state of CXTPCommandBars to registry : Hi, We set :  ::RegCreateKeyEx(HKEY_CURRENT_USER,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=17842&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#17842</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5635<br /><strong>Posted:</strong> 01 December 2006 at 11:54am<br /><br /><P>Hi,</P><DIV>We set :</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2>::RegCreateKeyEx(HKEY_CURRENT_USER, sKeyName, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &amp;hKeyLayout, NULL);</DIV><DIV>&nbsp;</DIV><DIV>sLayoutName = "AppMainFrame"</DIV><DIV>&nbsp;</DIV><DIV>In the registry we now see :</DIV><DIV>Layout</DIV><DIV>&nbsp;&nbsp; DockBars</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DockBar0</DIV><DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DockBar1<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DockBar2<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DockBar3</DIV><DIV><DIV>&nbsp;&nbsp; DockState</DIV><DIV>&nbsp;</DIV><DIV>Each key is empty, there is just a "(default)&nbsp;&nbsp; REG_SZ&nbsp;&nbsp;&nbsp; (value not set)" per key.</DIV><DIV>&nbsp;</DIV><DIV>Monday, we will step into your second answer.</DIV><DIV>&nbsp;</DIV></DIV></DIV></DIV></DIV></FONT>]]>
   </description>
   <pubDate>Fri, 01 Dec 2006 11:54:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=17842&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#17842</guid>
  </item> 
  <item>
   <title><![CDATA[Saving dock state of CXTPCommandBars to registry : Hello,  Again seems right. so...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=17841&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#17841</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5635<br /><strong>Posted:</strong> 01 December 2006 at 9:22am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Again seems right.</DIV><DIV>so problem can be only in registry settings. May be hKey you get only "readonly"/may be <strong>sLayoutName</strong> contains symbols that can't be used as registry key ("\"."/". etc)</DIV><DIV>&nbsp;</DIV><DIV>try again step into one of PX_,,,, and to CXTPPropExchangeRegistry::ExchangeProp and check what result of RegSetValueEx was.</DIV>]]>
   </description>
   <pubDate>Fri, 01 Dec 2006 09:22:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=17841&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#17841</guid>
  </item> 
  <item>
   <title><![CDATA[Saving dock state of CXTPCommandBars to registry : Hi, Ok, here are the results...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=17839&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#17839</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 5635<br /><strong>Posted:</strong> 01 December 2006 at 9:07am<br /><br /><P>Hi,</P><P>Ok, here are the results :</P><P>-------------------------------------</P><P><BR>This method is executed :<BR>void CXTPCommandBars::DoPropExchange(CXTPPropExchange* pPX, XTP_COMMANDBARS_PROPEXCHANGE_PARAM* pParam)</P><P>&nbsp;</P><P>This bloc is executed :<BR>if (pParam-&gt;bSerializeLayout)<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp; GetDockState(state);<BR>&nbsp;&nbsp;&nbsp;&nbsp; CXTPPropExchangeSection secLayout(pPX-&gt;GetSection(_T("Layout")));<BR>&nbsp;&nbsp;&nbsp;&nbsp; state.DoPropExchange(&amp;secLayout);<BR>&nbsp;&nbsp;&nbsp;&nbsp; SerializeDockBarsState(&amp;secLayout);<BR>}</P><P>Contents infos :<BR>state.m_arrBarInfo.m_nSize = 0</P><P>&nbsp;</P><P>This bloc is executed :<BR>void CXTPCommandBars::GetDockState(CXTPDockState&amp; state)</P><P>Contents infos :</P><P>GetCount() = 3<BR>pInfo... = valid pointers and valid toolbars pointers</P><P>&nbsp;</P><P>This bloc is executed :<BR>void CXTPDockState::DoPropExchange(CXTPPropExchange* pPX)</P><P>Contents infos :<BR>pPX-&gt;IsStoring() = TRUE<BR>nCount = 3<BR>for(...) :<BR>&nbsp;&nbsp; strSection = "BarInfo0"</P><P>&nbsp;</P><P>This bloc is executed :<BR>void CXTPToolBar::CToolBarInfo::DoPropExchange(CXTPPropExchange* pPX, CXTPDockState* pDockState)</P><P>Contents infos :<BR>pDockState = valid<BR>PX_ ... all valid<BR>(pDockState-&gt;GetVersion() &gt; _XTP_SCHEMA_87) = TRUE<BR>PX_Bool(pPX, _T("DialogBar"), m_bDialogBar, FALSE); : *** m_bDialogBar = FALSE for the 3 cases of previous for(...) ***</P><P>&nbsp;</P><P><BR>This bloc is executed :<BR>void CXTPCommandBars::SerializeDockBarsState(CXTPPropExchange* pPX)</P><P>Contents infos :<BR>for(...) :<BR>&nbsp;&nbsp; pDock = valid<BR>&nbsp;&nbsp; strSection = "DockBar0"<BR>&nbsp;&nbsp; pPX-&gt;IsStoring() = TRUE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nSize = 5<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pDock-&gt;m_arrBars&#091;0&#093; = NULL for all cases<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dwID = 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end of 2nd for(...)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nCount = 5</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for(...) :<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strDockBarSection = "Id0" and pBar = NULL for the first<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Id1"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPMenuBar for the 2nd<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "..."&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NULL for the 3rd<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPToolBar for the 4th<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NULL for the 5th</P><P>&nbsp;</P><P>...</P><P>-------------------------------------</P><P>Does it helps ?<BR></P>]]>
   </description>
   <pubDate>Fri, 01 Dec 2006 09:07:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=17839&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#17839</guid>
  </item> 
  <item>
   <title><![CDATA[Saving dock state of CXTPCommandBars to registry : Hi,   Actually code looks good....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=17790&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#17790</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5635<br /><strong>Posted:</strong> 30 November 2006 at 1:48am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>Actually code looks good. Try to debug into DoPropExchange and check if </DIV><DIV>"if (pParam-&gt;bSerializeLayout)" block was exectuted.</DIV>]]>
   </description>
   <pubDate>Thu, 30 Nov 2006 01:48:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5635&amp;PID=17790&amp;title=saving-dock-state-of-cxtpcommandbars-to-registry#17790</guid>
  </item> 
 </channel>
</rss>