<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Effective client area in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Effective-client-area/m-p/933054#M15228</link>
    <description>Hi, Jugoslav &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;Thank you, this works without any problem.  &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;Walter Kramer</description>
    <pubDate>Tue, 19 Dec 2000 04:11:09 GMT</pubDate>
    <dc:creator>wkramer</dc:creator>
    <dc:date>2000-12-19T04:11:09Z</dc:date>
    <item>
      <title>Effective client area</title>
      <link>https://community.intel.com/t5/Software-Archive/Effective-client-area/m-p/933052#M15226</link>
      <description>Hello, &lt;BR /&gt; &lt;BR /&gt;I am trying to implement a status bar in a windows application with a single edit control in the client area. &lt;BR /&gt; &lt;BR /&gt;To prevent the status bar from being painted over the edit control I tried to use the following approach: &lt;BR /&gt; &lt;BR /&gt;After creating the Status bar using "CreateStatusWindow" I try to call "GetEffectiveClientRect" to find the rectangular area remaining for the edit control. &lt;BR /&gt; &lt;BR /&gt;The code I use with WM_CREATE looks something like this: &lt;BR /&gt; &lt;BR /&gt;&lt;PRE&gt;     &lt;BR /&gt;    szDescription="flup"C &lt;BR /&gt;    hwndStatbar=CreateStatusWindow(IOR (WS_CHILD,WS_VISIBLE),szDescription, &amp;amp; &lt;BR /&gt;                                 hwnd,IDM_STATUSBAR) &lt;BR /&gt;    call GetEffectiveClientRect(Hwnd,Rect,RectInfo) &lt;BR /&gt;    hwndEdit = CreateWindowEx(0,"edit"C,  &amp;amp; &lt;BR /&gt;                            ""C,      &amp;amp; &lt;BR /&gt;                            IOR(WS_CHILD, IOR(WS_VISIBLE,                &amp;amp; &lt;BR /&gt;                            IOR(WS_HSCROLL, IOR(WS_VSCROLL,              &amp;amp; &lt;BR /&gt;                            IOR(WS_BORDER, IOR(ES_LEFT,                  &amp;amp; &lt;BR /&gt;                            IOR(ES_MULTILINE, IOR(ES_NOHIDESEL,          &amp;amp; &lt;BR /&gt;                            IOR(ES_AUTOHSCROLL, IOR(ES_READONLY,         &amp;amp; &lt;BR /&gt;                                ES_AUTOVSCROLL)))))))))), &amp;amp; &lt;BR /&gt;                            Rect.left, Rect.top, Rect.right, Rect.bottom, &amp;amp; &lt;BR /&gt;                            hwnd, EDITID, ghInstance, NULL) &lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Declarations of variables and constants: &lt;BR /&gt; &lt;BR /&gt;&lt;PRE&gt; &lt;BR /&gt;  integer(2), parameter :: IDM_STATUSBAR = 501 &lt;BR /&gt;  type(T_RECT) Rect &lt;BR /&gt;  integer(2), dimension(4) :: RectInfo=(/1,IDM_STATUSBAR,0,0/) &lt;BR /&gt;&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;However, GetEffectiveClientRect returns the same Rect data as GetClientRect would. So the edit control is painted over the status bar. I have my doubts about the RectInfo array. &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Does anyone have an idea? Perhaps I am using a completely wrong approach? &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Thanks, &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;Walter Kramer</description>
      <pubDate>Mon, 18 Dec 2000 04:40:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Effective-client-area/m-p/933052#M15226</guid>
      <dc:creator>wkramer</dc:creator>
      <dc:date>2000-12-18T04:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Effective client area</title>
      <link>https://community.intel.com/t5/Software-Archive/Effective-client-area/m-p/933053#M15227</link>
      <description>Hi Walter, &lt;BR /&gt; &lt;BR /&gt;Frankly, this is the first time I hear about GetEffectiveClientRect. Why not &lt;BR /&gt;simply subtract status bar from frame's client rect in order to obtain &lt;BR /&gt;desired height of edit control?: &lt;BR /&gt; &lt;BR /&gt;&lt;PRE&gt; 
CALL GetWindowRect(hWndStatbar,Rect) 
iStatusHeight=Rect%Bottom - Rect%Top 
CALL GetClientRect(hWnd,Rect) 
 
hWndEdit=CreateWindowEx(... 
               Rect%left, Rect%top, Rect%right, Rect%bottom-iStatusHeight 
               ...) 
 
&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;HTH &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
      <pubDate>Mon, 18 Dec 2000 23:34:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Effective-client-area/m-p/933053#M15227</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2000-12-18T23:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Effective client area</title>
      <link>https://community.intel.com/t5/Software-Archive/Effective-client-area/m-p/933054#M15228</link>
      <description>Hi, Jugoslav &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;Thank you, this works without any problem.  &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;Walter Kramer</description>
      <pubDate>Tue, 19 Dec 2000 04:11:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Effective-client-area/m-p/933054#M15228</guid>
      <dc:creator>wkramer</dc:creator>
      <dc:date>2000-12-19T04:11:09Z</dc:date>
    </item>
  </channel>
</rss>

