<?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 : Refresh problem with in CFormView</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Refresh problem with in CFormView]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 12:12:10 +0000</pubDate>
  <lastBuildDate>Sat, 21 Apr 2007 00:18: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=6945</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[Refresh problem with in CFormView : Hi.I use a DockingPane in MDI...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6945&amp;PID=22186&amp;title=refresh-problem-with-in-cformview#22186</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2951">edwardlj</a><br /><strong>Subject:</strong> 6945<br /><strong>Posted:</strong> 21 April 2007 at 12:18am<br /><br />Hi.<br><br>I use a DockingPane in MDI application. and the view is a CFormView.<br>&nbsp;<br>It is ok to create the pane. But when I hide the pane and activate it again by click its icon, the refresh get problem( It seems the formview does not refresh at all).<br><br>I change the CFormView to CView and it works.&nbsp; <br><br>&nbsp;The code is as following:<br><br>BOOL CUserFrame::PreCreateWindow(CREATESTRUCT&amp; cs)<br>{<br>&nbsp;&nbsp;&nbsp; if( !CMDIChildWnd::PreCreateWindow(cs) )<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return FALSE;<br>&nbsp; &nbsp; cs.style&nbsp;&nbsp; |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS|WS_CHILD; <br>&nbsp;&nbsp;&nbsp; return TRUE;<br>}<br>int CUserFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) <br>{<br>&nbsp;&nbsp;&nbsp; if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;<br><br>&nbsp; SetMenu(NULL)&nbsp;&nbsp;&nbsp; ;<br><br>&nbsp;&nbsp;&nbsp; // control bars objects have been created and docked.<br>&nbsp;&nbsp;&nbsp; m_paneManager.InstallDockingPanes(this);<br><br>&nbsp;&nbsp;&nbsp; // Create docking panes.<br>&nbsp;&nbsp;&nbsp; m_paneManager.CreatePane(<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; IDR_PANE_PROPERTIES, CRect(0, 0,210, 120), xtpPaneDockLeft);<br><br>&nbsp;&nbsp;&nbsp; int nID = IDR_PANE_PROPERTIES;<br>&nbsp;&nbsp;&nbsp; m_paneManager.SetIcons(IDB_BITMAP_ICONS, &amp;nID, 1);<br><br>&nbsp;&nbsp;&nbsp; m_paneManager.SetTheme(m_themeCurrent);<br><br>&nbsp; return 0;<br>}<br>LRESULT CUserFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)<br>{<br>&nbsp;&nbsp;&nbsp; if (wParam == XTP_DPN_SHOWWINDOW)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPDockingPane* pPane = (CXTPDockingPane*)lParam;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!pPane-&gt;IsValid())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ASSERT (pPane-&gt;GetID() == IDR_PANE_PROPERTIES);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (!m_wndPropertyGrid.m_hWnd)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_wndPropertyGrid.Create(CRect(0, 0, 0, 0), this, 1000);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_wndPropertyGrid.SetOwner(this);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CFont font;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; font.CreatePointFont(180, _T("Arial"));<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; LOGFONT lf;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; font.GetLogFont( &amp;lf );<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPPropertyGridItem* pSettings&nbsp; = m_wndPropertyGrid.AddCategory(_T("Settings"));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pSettings-&gt;AddChildItem(new CXTPPropertyGridItem(_T("Text"), _T("www.codejock.com")));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pSettings-&gt;AddChildItem(new CXTPPropertyGridItemFont(_T("Font"), lf));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pSettings-&gt;AddChildItem(new CXTPPropertyGridItemColor(_T("Color"), RGB(0,0, 255)));<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pSettings-&gt;Expand();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pPane-&gt;Attach(&amp;m_wndPropertyGrid);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return TRUE;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp; return FALSE;<br>}<br><br><br>Can anybody help me, how to solute this problem?<br>&nbsp;]]>
   </description>
   <pubDate>Sat, 21 Apr 2007 00:18:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6945&amp;PID=22186&amp;title=refresh-problem-with-in-cformview#22186</guid>
  </item> 
 </channel>
</rss>