<?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 : Attaching pane causes form view paint problems!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Attaching pane causes form view paint problems!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 10:09:37 +0000</pubDate>
  <lastBuildDate>Tue, 01 Aug 2006 22:21:10 +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=4691</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[Attaching pane causes form view paint problems! : Hi again! I played a bit with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4691&amp;PID=14522&amp;title=attaching-pane-causes-form-view-paint-problems#14522</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 4691<br /><strong>Posted:</strong> 01 August 2006 at 10:21pm<br /><br /><P>Hi again!</P><DIV>I played a bit with the Whidbey sample, and it suffers the same problem I have encountered: The menus loaded elsewhere than in CMainFrame are not dockable and cannot be placed vertically.</DIV><DIV>&nbsp;</DIV><DIV>// This is a modified version of the CPropertiesPane in the Whidbey sample</DIV><DIV>int CPropertiesPane::OnCreate(LPCREATESTRUCT lpCreateStruct)<BR>{<BR>&nbsp;if (CWnd::OnCreate(lpCreateStruct) == -1)<BR>&nbsp;&nbsp;return -1;</DIV><DIV>&nbsp;VERIFY(m_wndToolBar.CreateToolBar(WS_TABSTOP|WS_VISIBLE|WS_CHILD|CBRS_TOOLTIPS | CBRS_LEFT | CBRS_GRIPPER, this)); // CBRS_LEFT does&nbsp;not help!<BR>&nbsp;VERIFY(m_wndToolBar.LoadToolBar(IDR_PANE_PROPERTIES));</DIV><DIV>...</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>What I want to do is to add a toolbar to the left, INSIDE ONE of my views. I do not want it to be visible in other views. Can it be done?</DIV>]]>
   </description>
   <pubDate>Tue, 01 Aug 2006 22:21:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4691&amp;PID=14522&amp;title=attaching-pane-causes-form-view-paint-problems#14522</guid>
  </item> 
  <item>
   <title><![CDATA[Attaching pane causes form view paint problems! : Thank you very much! All problems...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4691&amp;PID=14521&amp;title=attaching-pane-causes-form-view-paint-problems#14521</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 4691<br /><strong>Posted:</strong> 01 August 2006 at 8:11pm<br /><br />Thank you very much! All problems solved! \o/<DIV>&nbsp;</DIV><DIV>Though, I wonder about this call: <FONT size=2>SetScaleToFitSize(CSize(1, 1)).</FONT></DIV><DIV><FONT size=2>All controls are placed correctly, but they can be resized to non-visible. How would you make the controls "grow, but not shrink more than (cx, cy)"? Is the only way to handle OnGetMinMaxInfo in the main frame?</FONT></DIV>]]>
   </description>
   <pubDate>Tue, 01 Aug 2006 20:11:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4691&amp;PID=14521&amp;title=attaching-pane-causes-form-view-paint-problems#14521</guid>
  </item> 
  <item>
   <title><![CDATA[Attaching pane causes form view paint problems! : ps.  About warning - use search...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4691&amp;PID=14520&amp;title=attaching-pane-causes-form-view-paint-problems#14520</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4691<br /><strong>Posted:</strong> 01 August 2006 at 7:34pm<br /><br />ps. <DIV>About warning - use search in forum, or update sources to 10.3</DIV><DIV>About toolbar - see GUI_Whidbey sample.</DIV>]]>
   </description>
   <pubDate>Tue, 01 Aug 2006 19:34:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4691&amp;PID=14520&amp;title=attaching-pane-causes-form-view-paint-problems#14520</guid>
  </item> 
  <item>
   <title><![CDATA[Attaching pane causes form view paint problems! : Hi,  yes problem was in clip...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4691&amp;PID=14519&amp;title=attaching-pane-causes-form-view-paint-problems#14519</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4691<br /><strong>Posted:</strong> 01 August 2006 at 7:31pm<br /><br /><P>Hi, </P><DIV>yes problem was in clip styles. Fixed files attached.</DIV><DIV><a href="http://forum.codejock.com/uploads/20060801_193038_MyProgramFix.zip" target="_blank">MyProgramFix.zip</DIV><DIV><DIV>&nbsp;</DIV></A></DIV>]]>
   </description>
   <pubDate>Tue, 01 Aug 2006 19:31:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4691&amp;PID=14519&amp;title=attaching-pane-causes-form-view-paint-problems#14519</guid>
  </item> 
  <item>
   <title><![CDATA[Attaching pane causes form view paint problems! : The project found at the address...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4691&amp;PID=14515&amp;title=attaching-pane-causes-form-view-paint-problems#14515</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 4691<br /><strong>Posted:</strong> 01 August 2006 at 6:40pm<br /><br /><P>The project found at the address below has three problems:</P><DIV></DIV>1) It paints incorrectly when the pane is attached (see attached screenshot).<DIV>2) The auto-resizing controls do not behave correctly when the window is being resized in certain ways (see attached screenshot).</DIV><DIV>3) I get a lot of warnings when compiling. Where should I turn these off (I do not always want to ignore C4244)?</DIV><DIV>&nbsp;</DIV><DIV><DIV><a href="http://www.bostream.nu/krisse/Codejock-problem.zip" target="_blank">http://www.bostream.nu/krisse/Codejock-problem.zip</A></DIV><DIV>&nbsp;</DIV><DIV>If you have time, then I wonder another thing too:<BR>How do I attach a CXTPToolBar to the left of a specific view? That is, it should only appear when, say CMyViewWithAMenu is active. There is no sample showing this, and I haven't been able to figure out how to accomplish it.</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance!</DIV></DIV>]]>
   </description>
   <pubDate>Tue, 01 Aug 2006 18:40:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4691&amp;PID=14515&amp;title=attaching-pane-causes-form-view-paint-problems#14515</guid>
  </item> 
  <item>
   <title><![CDATA[Attaching pane causes form view paint problems! : Hello, You can attach project...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4691&amp;PID=14510&amp;title=attaching-pane-causes-form-view-paint-problems#14510</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4691<br /><strong>Posted:</strong> 01 August 2006 at 9:30am<br /><br />Hello,<DIV>You can attach project here and I will show where problem.</DIV>]]>
   </description>
   <pubDate>Tue, 01 Aug 2006 09:30:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4691&amp;PID=14510&amp;title=attaching-pane-causes-form-view-paint-problems#14510</guid>
  </item> 
  <item>
   <title><![CDATA[Attaching pane causes form view paint problems! : I have an MDI application where...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4691&amp;PID=14502&amp;title=attaching-pane-causes-form-view-paint-problems#14502</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 4691<br /><strong>Posted:</strong> 01 August 2006 at 4:10am<br /><br />I have an MDI application where all views are held by a&nbsp; C<FONT size=2>XTPTabClientWnd variable. In one of my form views I have a auto-hiding pane placed at the top of the frame. If I attach it, the whole view gets repainted incorrectly.<DIV>&nbsp;</DIV><DIV>I have to minimize the window and then maximize it again to get back my controls in their original shape. I have a similar pane in a calendar view, but the calendar seems to understand that it should repaint itself.</DIV><DIV>&nbsp;</DIV><DIV>I have tried this inside my docking notification handler:</DIV><DIV>if (wParam == XTP_DPN_ACTION)<BR>{</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;XTP_DOCKINGPANE_ACTION* pAction = (XTP_DOCKINGPANE_ACTION*)lParam;<BR>&nbsp;&nbsp;&nbsp; if (pAction-&gt;action == xtpPaneActionAttached)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GetActiveView()-&gt;Invalidate();<BR>}</DIV><DIV>&nbsp;</DIV><DIV>I have also been playing with the WS_CLIPSIBLINGS and WS_CLIPCHILDREN styles, with no success. What is causing this redraw problem?</DIV><DIV>&nbsp;</DIV><DIV>Please help!</DIV></FONT>]]>
   </description>
   <pubDate>Tue, 01 Aug 2006 04:10:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4691&amp;PID=14502&amp;title=attaching-pane-causes-form-view-paint-problems#14502</guid>
  </item> 
 </channel>
</rss>