<?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 : How to fit a CWnd in a Pane?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : How to fit a CWnd in a Pane?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 08:01:31 +0000</pubDate>
  <lastBuildDate>Fri, 11 Aug 2006 08:32:55 +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=4775</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[How to fit a CWnd in a Pane? : Thanks, for some reason my message...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4775&amp;PID=14815&amp;title=how-to-fit-a-cwnd-in-a-pane#14815</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2240">HuyLe</a><br /><strong>Subject:</strong> 4775<br /><strong>Posted:</strong> 11 August 2006 at 8:32am<br /><br /><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">Thanks, for some reason my message Map was wrong, your reply helps me to detect the problem. Especially since&nbsp;Microsoft debugger does not want to correlate the source code to the binary therefore I can't debug... Something I need to investigate in order to continue my development.</SPAN></P><DIV>&nbsp;</DIV><DIV>Regards,</DIV><DIV>&nbsp;</DIV><DIV>Huy Le</DIV>]]>
   </description>
   <pubDate>Fri, 11 Aug 2006 08:32:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4775&amp;PID=14815&amp;title=how-to-fit-a-cwnd-in-a-pane#14815</guid>
  </item> 
  <item>
   <title><![CDATA[How to fit a CWnd in a Pane? : how about catching WM_SIZE in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4775&amp;PID=14813&amp;title=how-to-fit-a-cwnd-in-a-pane#14813</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1011">Barto</a><br /><strong>Subject:</strong> 4775<br /><strong>Posted:</strong> 11 August 2006 at 4:08am<br /><br />how about catching WM_SIZE in your hvlOpenGLWnd and adjusting the glViewport ? Worked for me..<DIV>&nbsp;</DIV><DIV>void CGLWnd::OnSizeGL(int cx, int cy)<BR>{<BR>&nbsp;// set correspondence between window and OGL viewport<BR>&nbsp;glViewport(0, 0, cx, cy);<BR>}<BR></DIV>]]>
   </description>
   <pubDate>Fri, 11 Aug 2006 04:08:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4775&amp;PID=14813&amp;title=how-to-fit-a-cwnd-in-a-pane#14813</guid>
  </item> 
  <item>
   <title><![CDATA[How to fit a CWnd in a Pane? : Hi,  I havederiveda class hvlOpenGLWnd...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4775&amp;PID=14807&amp;title=how-to-fit-a-cwnd-in-a-pane#14807</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2240">HuyLe</a><br /><strong>Subject:</strong> 4775<br /><strong>Posted:</strong> 10 August 2006 at 12:40pm<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>I have&nbsp;derived&nbsp;a class hvlOpenGLWnd&nbsp; from CWnd to display OpenGL.</DIV><DIV>&nbsp;</DIV><DIV>I have created a pane:</DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>CXTPDockingPane* _pPane = _pPaneManager-&gt;CreatePane(HVL_ID, CRect(0, 0, 140, 600), xtpPaneDockBottom);</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>I have created a window:</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>hvlOpenGLWnd m_Wnd;</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>m_Wnd.Create <FONT size=2>(_T("STATIC"), L"Hi", WS_CHILD | WS_VISIBLE,CRect(0, 0, 140, 600), _pMainWnd, 1234);</FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>and attached the window:</FONT></DIV><DIV><FONT size=2><P>_pPane-&gt;Attach(&amp;m_Wnd);</P><DIV>How to make the CWnd fit in the pane when I resize the pane? With the current code, changing the pane size with the mouse will not resize the window. The Window always stays 140x600.</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>&nbsp;</DIV><DIV></FONT><FONT size=2>HVL</DIV></DIV></FONT>]]>
   </description>
   <pubDate>Thu, 10 Aug 2006 12:40:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4775&amp;PID=14807&amp;title=how-to-fit-a-cwnd-in-a-pane#14807</guid>
  </item> 
 </channel>
</rss>