<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Problem with controls in the window, please help!!!!!' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Problem with controls in the window, please help!!!!!' posted on the 'Windows programming' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 05:42:34 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 05:42:34 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Problem with controls in the window, please help!!!!!</title>
      <link>http://www.programmersheaven.com/mb/windows/151759/151759/problem-with-controls-in-the-window-please-help/</link>
      <description>Hi!&lt;br /&gt;
&lt;br /&gt;
- My program handles the WM_ERASEBKGND message in the window callback procedure, to paint the background of the window. /It puts out a BMP picture/&lt;br /&gt;
- In the WinMain, i also put out a couple controls, like buttons, edit boxes, etc.&lt;br /&gt;
&lt;br /&gt;
The problem:When the controls are drawn to the screen, WM_ERASEBKGND gets called, and erases the controls. Also, when the window is minimized, then restored, the controls are not viewable. What a heck i'm doing wrong?&lt;br /&gt;
/I alo tried to filter out the WM_ERASEBKGND messages sent to clear the background of the controls, and in those cases i called the DefWindowProc. In that case initially the controls are viewable, but i still have the same problem upon minimizing-restoreing the window, the controls are erased (not erased, just not painted. If you click on them, they reappear.)/&lt;br /&gt;
&lt;br /&gt;
Edocecrous&lt;br /&gt;
&lt;br /&gt;
ps.:So what the heck is responsible for repainting the controls?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/151759/151759/problem-with-controls-in-the-window-please-help/</guid>
      <pubDate>Thu, 07 Nov 2002 07:37:37 -0700</pubDate>
      <category>Windows programming</category>
    </item>
    <item>
      <title>Re: ...where the heck some code?..</title>
      <link>http://www.programmersheaven.com/mb/windows/151759/151768/re-where-the-heck-some-code/#151768</link>
      <description>&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/151759/151768/re-where-the-heck-some-code/#151768</guid>
      <pubDate>Thu, 07 Nov 2002 07:46:04 -0700</pubDate>
      <category>Windows programming</category>
    </item>
    <item>
      <title>Re: ...where the heck some code?..</title>
      <link>http://www.programmersheaven.com/mb/windows/151759/151866/re-where-the-heck-some-code/#151866</link>
      <description>Try adding WS_CLIPCHILDREN in your main window styles.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/151759/151866/re-where-the-heck-some-code/#151866</guid>
      <pubDate>Thu, 07 Nov 2002 10:01:43 -0700</pubDate>
      <category>Windows programming</category>
    </item>
    <item>
      <title>Re: ...where the heck some code?..</title>
      <link>http://www.programmersheaven.com/mb/windows/151759/152101/re-where-the-heck-some-code/#152101</link>
      <description>It lives, IT LIVES!!!!!&lt;br /&gt;
Thanks, you are the best... ...I was wasting time for 3 days because of this stupid error. It's always like this. I'm writing a 32bit disassembler in assembly, and so on... ...and i sometimes can't find a stupid mistake. When you look at your code the 1000x times, it's hard to find an error you made at line 3. &lt;img src="http://www.programmersheaven.com/images/Community/smile.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
&lt;br /&gt;
Thanx again!&lt;br /&gt;
&lt;br /&gt;
Edocecrous&lt;br /&gt;
&lt;br /&gt;
ps.:Do you happen to know, how could i get access to a DirectX program's secondary surfaces? /The specific case is, i'd like to take a peek at the game, Diablo's (the first one, writen in DX3) secondary surfaces.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/151759/152101/re-where-the-heck-some-code/#152101</guid>
      <pubDate>Fri, 08 Nov 2002 08:17:10 -0700</pubDate>
      <category>Windows programming</category>
    </item>
  </channel>
</rss>