<?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 : Where to capture resizing ???</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Where to capture resizing ???]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 16:34:07 +0000</pubDate>
  <lastBuildDate>Tue, 27 Nov 2007 04:56: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=8835</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[Where to capture resizing ??? : ok :) ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28884&amp;title=where-to-capture-resizing#28884</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8835<br /><strong>Posted:</strong> 27 November 2007 at 4:56am<br /><br />ok :)]]>
   </description>
   <pubDate>Tue, 27 Nov 2007 04:56:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28884&amp;title=where-to-capture-resizing#28884</guid>
  </item> 
  <item>
   <title><![CDATA[Where to capture resizing ??? : Issue Resolved. I was creating...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28874&amp;title=where-to-capture-resizing#28874</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2333">amitb</a><br /><strong>Subject:</strong> 8835<br /><strong>Posted:</strong> 27 November 2007 at 1:59am<br /><br />Issue Resolved. <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" align="absmiddle"><br><br>I was creating the pane each time, when actually i should not have created it once the layout was stored in registry.<br><br>FindPane() worked.<br>]]>
   </description>
   <pubDate>Tue, 27 Nov 2007 01:59:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28874&amp;title=where-to-capture-resizing#28874</guid>
  </item> 
  <item>
   <title><![CDATA[Where to capture resizing ??? : Thanks. I did is without saving...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28873&amp;title=where-to-capture-resizing#28873</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2333">amitb</a><br /><strong>Subject:</strong> 8835<br /><strong>Posted:</strong> 27 November 2007 at 1:44am<br /><br />Thanks. I did is without saving as pointer and it works fine.<br><br>However, my taskpanel is getting created by the same size.<br><br>since before i load the layout&nbsp; i have a call which is:<br><br><font color="#3333ff" face="Courier New, Courier, mono">m_wndTaskPanel.Create(WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS|WS_CLIPCHILDREN, CRect(0, 0, 0, 0), /*this*/ pWnd, 0))<br><br>this-&gt;CreatePane(ID_PANE, CRect(0, 0, 150, 150), xtpPaneDockLeft);<br>m_pDocPane-&gt;Attach(&amp;m_wndTaskPanel);</font><br><br>so due to this the task panel is always getting set to 150,150.<br><br>]]>
   </description>
   <pubDate>Tue, 27 Nov 2007 01:44:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28873&amp;title=where-to-capture-resizing#28873</guid>
  </item> 
  <item>
   <title><![CDATA[Where to capture resizing ??? : Again you don&amp;#039;t need to save...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28828&amp;title=where-to-capture-resizing#28828</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8835<br /><strong>Posted:</strong> 26 November 2007 at 10:02am<br /><br /><P>Again you don't need to save pointer to m_pCmcLayout:</P><DIV>&nbsp;</DIV><DIV>to save</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;CXTPDockingPaneLayout layoutNormal(&amp;m_paneManager);<BR>&nbsp;m_paneManager.GetLayout(&amp;layoutNormal);<BR>&nbsp;layoutNormal.Save(_T("NormalLayout"));<BR></DIV><DIV>to load:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;// Load the previous state for docking panes.<BR>&nbsp;CXTPDockingPaneLayout layoutNormal(&amp;m_paneManager);<BR>&nbsp;if (layoutNormal.Load(_T("NormalLayout")))<BR>&nbsp;{<BR>&nbsp;&nbsp;m_paneManager.SetLayout(&amp;layoutNormal);<BR>&nbsp;}</DIV>]]>
   </description>
   <pubDate>Mon, 26 Nov 2007 10:02:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28828&amp;title=where-to-capture-resizing#28828</guid>
  </item> 
  <item>
   <title><![CDATA[Where to capture resizing ??? : Hello Oleg,Using FindPane() Worked...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28817&amp;title=where-to-capture-resizing#28817</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2333">amitb</a><br /><strong>Subject:</strong> 8835<br /><strong>Posted:</strong> 26 November 2007 at 5:20am<br /><br />Hello Oleg,<br>Using FindPane() Worked fine for me :) Thanks...<br><br>Though the problem of the pointer is solved, i am not able to restore the size when i open the application next time.<br><br>This is what i am doing. Please tell me if the steps are correct.<br><br>In OnCreate()::::<br><br>&nbsp;&nbsp;&nbsp; if (!m_wndTaskPanel.GetSafeHwnd()) <br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!m_wndTaskPanel.Create(WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS|WS_CLIPCHILDREN, CRect(0, 0, 0, 0), /*this*/ pWnd, 0))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return FALSE;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_wndTaskPanel.SetOwner(pWnd);//this);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_wndTaskPanel.SetTheme(xtpTaskPanelThemeNativeWinXP);//xtpTaskPanelThemeShortcutBarOffice2003);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_wndTaskPanel.SetHotTrackStyle(xtpTaskPanelHighlightImage/*xtpTaskPanelHighlightItem*/);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_wndTaskPanel.SetSelectItemOnFocus(TRUE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //m_wndTaskPanel.SetSingleSelection();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_wndTaskPanel.SetItemLayout(xtpTaskItemLayoutImagesWithText);//xtpTaskItemLayoutImagesWithTextBelow);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_wndTaskPanel.AllowDrag(FALSE);&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_wndTaskPanel.SetBehaviour(xtpTaskPanelBehaviourList);&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; this-&gt;InstallDockingPanes(pWnd);<br>&nbsp;&nbsp;&nbsp; this-&gt;SetTheme(xtpPaneThemeNativeWinXP/*xtpPaneThemeShortcutBar2003*/);<br><br><br><br>&nbsp;&nbsp;&nbsp; m_pDocPane = this-&gt;CreatePane(ID_PANE, CRect(0, 0, 150, 150), xtpPaneDockLeft);<br>&nbsp;&nbsp;&nbsp; m_pDocPane-&gt;SetOptions(xtpPaneNoCloseable | xtpPaneNoHideable | xtpPaneNoFloatable | xtpPaneNoDockable | xtpPaneNoCaption);<br><br><br>&nbsp;&nbsp;&nbsp; m_pDocPane-&gt;Attach(&amp;m_wndTaskPanel); <br><br>&nbsp;&nbsp;&nbsp; m_pCmcLayout = this-&gt;CreateLayout();<br>&nbsp;&nbsp;&nbsp; if (m_pCmcLayout-&gt;Load(_T("AmitLayout"))) <br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;SetLayout(m_pCmcLayout);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;GetLayout(m_pCmcLayout);<br>&nbsp;&nbsp;&nbsp; }<br>************<br>Also in the destructor of my class i am doing this:<br>&nbsp;&nbsp;&nbsp; m_pCmcLayout-&gt;Save(_T("AmitLayout"));<br>&nbsp;&nbsp;&nbsp; delete m_pCmcLayout;<br><br>Still i am not able to restore the Taskpanel + Pane with the new size....<br><br>What is going wrong here ???<br><br>]]>
   </description>
   <pubDate>Mon, 26 Nov 2007 05:20:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28817&amp;title=where-to-capture-resizing#28817</guid>
  </item> 
  <item>
   <title><![CDATA[Where to capture resizing ??? : Yes, after SetLayout call m_pDocPane...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28751&amp;title=where-to-capture-resizing#28751</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8835<br /><strong>Posted:</strong> 23 November 2007 at 1:43am<br /><br />Yes, after SetLayout call m_pDocPane is destroyed. Don't save pointers. Use FindPane method instead.]]>
   </description>
   <pubDate>Fri, 23 Nov 2007 01:43:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28751&amp;title=where-to-capture-resizing#28751</guid>
  </item> 
  <item>
   <title><![CDATA[Where to capture resizing ??? : Thanks,I checked the example of...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28732&amp;title=where-to-capture-resizing#28732</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2333">amitb</a><br /><strong>Subject:</strong> 8835<br /><strong>Posted:</strong> 22 November 2007 at 6:32am<br /><br />Thanks,<br>I checked the example of how to save the layout.<br><br>Now i am geting into another problem<br>I have class:<br>class CDockBar : public CXTPDockingPaneManager<br>{<br>public:<br>&nbsp;&nbsp; &nbsp;CmcTaskPanel&nbsp;&nbsp; &nbsp;m_wndTaskPanel; <br>&nbsp;&nbsp; &nbsp;CXTPDockingPane* m_pDocPane;<br>&nbsp;&nbsp; &nbsp;CXTPDockingPaneLayout* m_pCmcLayout;<br><br>}<br><br>Now in the create function of CDockBar :<br>I create the taskpanel.<br>I create the pane<br>and i attach the taskpane to this pane.<br><br>Now when i do this:<br>&nbsp;&nbsp; &nbsp;m_pCmcLayout = this-&gt;CreateLayout();<br>&nbsp;&nbsp; &nbsp;if (m_pCmcLayout-&gt;Load(_T("AmitLayout"))) <br>&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;this-&gt;SetLayout(m_pCmcLayout);<br>&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp;else<br>&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;this-&gt;GetLayout(m_pCmcLayout);<br>&nbsp;&nbsp; &nbsp;}<br><font color="#3300ff">When before it executes the call to SetLayout, the m_pDocPane shows its class in the Add-Watch of VC6 as {CXTPDockingPane}.<br>But as soon as the SetLayout calls is executed, the m_pDocPane shows its class in add watch as {CXTPTabManager::CNavigateButtonArrowRight}.<br>Why the class changes ???</font><br><br>Due to this my application crashes later when i call m_pDocPane-&gt;Select(); // In the GetDockingPaneManager() it shows the value of m_pLayout as NULL.]]>
   </description>
   <pubDate>Thu, 22 Nov 2007 06:32:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28732&amp;title=where-to-capture-resizing#28732</guid>
  </item> 
  <item>
   <title><![CDATA[Where to capture resizing ??? : Hi, You have save layout of DockingPanes....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28698&amp;title=where-to-capture-resizing#28698</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8835<br /><strong>Posted:</strong> 21 November 2007 at 9:05am<br /><br />Hi,<DIV>You have save layout of DockingPanes. See our samples - they show how.</DIV>]]>
   </description>
   <pubDate>Wed, 21 Nov 2007 09:05:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28698&amp;title=where-to-capture-resizing#28698</guid>
  </item> 
  <item>
   <title><![CDATA[Where to capture resizing ??? : Thanks Oleg,Can i store the size...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28686&amp;title=where-to-capture-resizing#28686</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2333">amitb</a><br /><strong>Subject:</strong> 8835<br /><strong>Posted:</strong> 20 November 2007 at 11:18pm<br /><br />Thanks Oleg,<br><br>Can i store the size of this taskpanel in registry, so that when my application will restart user will see the last size he set.<br>]]>
   </description>
   <pubDate>Tue, 20 Nov 2007 23:18:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28686&amp;title=where-to-capture-resizing#28686</guid>
  </item> 
  <item>
   <title><![CDATA[Where to capture resizing ??? : Catch WM_SIZE of Taskpanel. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28654&amp;title=where-to-capture-resizing#28654</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8835<br /><strong>Posted:</strong> 20 November 2007 at 7:07am<br /><br />Catch WM_SIZE of Taskpanel. ]]>
   </description>
   <pubDate>Tue, 20 Nov 2007 07:07:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8835&amp;PID=28654&amp;title=where-to-capture-resizing#28654</guid>
  </item> 
 </channel>
</rss>