<?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 : Flat MDIClient edges</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Flat MDIClient edges]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 22:53:16 +0000</pubDate>
  <lastBuildDate>Sun, 02 Nov 2003 11:01:02 +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=160</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[Flat MDIClient edges : Hello, Overridethe WindowProc...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=160&amp;PID=426&amp;title=flat-mdiclient-edges#426</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1">kstowell</a><br /><strong>Subject:</strong> 160<br /><strong>Posted:</strong> 02 November 2003 at 11:01am<br /><br /><P>Hello,</P><P>Override&nbsp;the WindowProc virtual function for your view and add the following code:</P><FONT color=#0000ff><P></FONT><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>LRESULT CSampleView</FONT>::<FONT color=#880000>WindowProc</FONT>(<FONT color=#0000ff>UINT</FONT> <FONT color=#808080>message</FONT>, <FONT color=#0000ff>WPARAM</FONT> <FONT color=#808080>wParam</FONT>, <FONT color=#0000ff>LPARAM</FONT> <FONT color=#808080>lParam</FONT>) <BR>{<BR>&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>switch</FONT> (<FONT color=#808080>message</FONT>)<BR>&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono">{<BR>&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>case</FONT> <FONT color=#a000a0>WM_NCPAINT</FONT>:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono">{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New"><FONT color=#0000ff>CWindowDC</FONT> <FONT color=#880000>dc</FONT>(<FONT color=#0000ff>this</FONT>);<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>CRect</FONT> <FONT color=#808080>rc</FONT>;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#880000>GetWindowRect</FONT>(&amp;<FONT color=#808080>rc</FONT>);<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>int</FONT> <FONT color=#808080>cx</FONT> = <FONT color=#808080>rc</FONT>.<FONT color=#880000>Width</FONT>();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>int</FONT> <FONT color=#808080>cy</FONT> = <FONT color=#808080>rc</FONT>.<FONT color=#880000>Height</FONT>();<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>const</FONT> <FONT color=#0000ff>COLORREF</FONT> <FONT color=#808080>clrFrame</FONT> = <FONT color=#880000>GetXtremeColor</FONT>(<FONT color=#a000a0>XPCOLOR_3DSHADOW</FONT>);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#808080>dc</FONT>.<FONT color=#880000>Draw3dRect</FONT>(0, 0, <FONT color=#808080>cx</FONT>, <FONT color=#808080>cy</FONT>, <FONT color=#808080>clrFrame</FONT>, <FONT color=#808080>clrFrame</FONT>);<BR><BR></FONT><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp;&nbsp;</FONT><FONT face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#0000ff>return</FONT> <FONT color=#a000a0>TRUE</FONT>;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono">}</FONT></P><P><FONT face="Courier New, Courier, mono"></FONT></P><P><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case</FONT> <FONT color=#a000a0>WM_NCCALCSIZE</FONT>:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono">{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>NCCALCSIZE_PARAMS</FONT> <FONT color=#a000a0>FAR</FONT>* <FONT color=#808080>lpncsp</FONT> = (<FONT color=#0000ff>NCCALCSIZE_PARAMS</FONT> <FONT color=#a000a0>FAR</FONT>*)<FONT color=#808080>lParam</FONT>;</FONT></P><P><FONT color=#008000><FONT face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // adjust non-client area for border space<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></FONT><FONT face="Courier New, Courier, mono"><FONT color=#808080>lpncsp</FONT>-&gt;<FONT color=#808080>rgrc</FONT>&#091;0&#093;.<FONT color=#808080>left</FONT> += 1;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#808080>lpncsp</FONT>-&gt;<FONT color=#808080>rgrc</FONT>&#091;0&#093;.<FONT color=#808080>top</FONT> += 1;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#808080>lpncsp</FONT>-&gt;<FONT color=#808080>rgrc</FONT>&#091;0&#093;.<FONT color=#808080>right</FONT> -= 1;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#808080>lpncsp</FONT>-&gt;<FONT color=#808080>rgrc</FONT>&#091;0&#093;.<FONT color=#808080>bottom</FONT> -= 1;<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>return</FONT> <FONT color=#a000a0>TRUE</FONT>;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono">}<BR>&nbsp;&nbsp;&nbsp;&nbsp;</FONT><FONT face="Courier New, Courier, mono">}</FONT></P><P><FONT face="Courier New, Courier, mono"></FONT></P><P><FONT face="Courier New, Courier, mono"><FONT color=#0000ff>&nbsp;&nbsp;&nbsp; return</FONT> <FONT color=#0000ff>CView</FONT>::<FONT color=#880000>WindowProc</FONT>(<FONT color=#808080>message</FONT>, <FONT color=#808080>wParam</FONT>, <FONT color=#808080>lParam</FONT>);<BR></FONT><FONT face="Courier New, Courier, mono">}</P><P>Let me know if this helps.</P><P>Cheers,<BR>Codejock Support</P></FONT><span style="font-size:10px"><br /><br />Edited by Administrator</span>]]>
   </description>
   <pubDate>Sun, 02 Nov 2003 11:01:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=160&amp;PID=426&amp;title=flat-mdiclient-edges#426</guid>
  </item> 
  <item>
   <title><![CDATA[Flat MDIClient edges : The link to your image is invalid....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=160&amp;PID=329&amp;title=flat-mdiclient-edges#329</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=150">Sven</a><br /><strong>Subject:</strong> 160<br /><strong>Posted:</strong> 11 September 2003 at 2:46pm<br /><br />The link to your image is invalid.]]>
   </description>
   <pubDate>Thu, 11 Sep 2003 14:46:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=160&amp;PID=329&amp;title=flat-mdiclient-edges#329</guid>
  </item> 
  <item>
   <title><![CDATA[Flat MDIClient edges : I&amp;#039;m using the XTreme Suite....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=160&amp;PID=328&amp;title=flat-mdiclient-edges#328</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=163">Lenz</a><br /><strong>Subject:</strong> 160<br /><strong>Posted:</strong> 11 September 2003 at 10:01am<br /><br /><P>I'm using the XTreme Suite. Does anyone know how to create a MDI application so that the client edges are flat? Ive included an image of the area.</P><P><IMG src="http://www.k2workflow.com/3d.bmp" border="0"></P><span style="font-size:10px"><br /><br />Edited by Lenz</span>]]>
   </description>
   <pubDate>Thu, 11 Sep 2003 10:01:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=160&amp;PID=328&amp;title=flat-mdiclient-edges#328</guid>
  </item> 
 </channel>
</rss>