<?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 Redrawing a dialog window in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Redrawing-a-dialog-window/m-p/960930#M21808</link>
    <description>I'm using in my CVF program a Win32-driven dialog window. This window contains some ownerdrawn buttons. These buttons are painted in a background color by the program. &lt;BR /&gt;A button click will activate a "choosecolor"-dialog window to select a color. After selection the button should be painted in the selected color &lt;BR /&gt;My problem is now that the redraw of the button is not done directly. When I do a mouseclick somewhere in the window the redraw is done. But  which function should be called to redraw the buttons without mouse activation? &lt;BR /&gt; &lt;BR /&gt;Guus.</description>
    <pubDate>Wed, 01 Aug 2001 17:18:00 GMT</pubDate>
    <dc:creator>nijhuis</dc:creator>
    <dc:date>2001-08-01T17:18:00Z</dc:date>
    <item>
      <title>Redrawing a dialog window</title>
      <link>https://community.intel.com/t5/Software-Archive/Redrawing-a-dialog-window/m-p/960930#M21808</link>
      <description>I'm using in my CVF program a Win32-driven dialog window. This window contains some ownerdrawn buttons. These buttons are painted in a background color by the program. &lt;BR /&gt;A button click will activate a "choosecolor"-dialog window to select a color. After selection the button should be painted in the selected color &lt;BR /&gt;My problem is now that the redraw of the button is not done directly. When I do a mouseclick somewhere in the window the redraw is done. But  which function should be called to redraw the buttons without mouse activation? &lt;BR /&gt; &lt;BR /&gt;Guus.</description>
      <pubDate>Wed, 01 Aug 2001 17:18:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Redrawing-a-dialog-window/m-p/960930#M21808</guid>
      <dc:creator>nijhuis</dc:creator>
      <dc:date>2001-08-01T17:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Redrawing a dialog window</title>
      <link>https://community.intel.com/t5/Software-Archive/Redrawing-a-dialog-window/m-p/960931#M21809</link>
      <description>Try &lt;BR /&gt; &lt;BR /&gt;&lt;PRE&gt;&lt;FONT size="+0"&gt; 
iDummy = InvalidateRect(GetDlgItem(hDlg, IDC_MYBUTTON), NULL_RECTANGLE) 
iDummy = UpdateWindow(GetDlgItem(hDlg, IDC_MYBUTTON)) 
&lt;/FONT&gt;&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;or, if it doesn't work, invalidate entire dialog (hDlg) instead of just that button.</description>
      <pubDate>Wed, 01 Aug 2001 21:28:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Redrawing-a-dialog-window/m-p/960931#M21809</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2001-08-01T21:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Redrawing a dialog window</title>
      <link>https://community.intel.com/t5/Software-Archive/Redrawing-a-dialog-window/m-p/960932#M21810</link>
      <description>With some adaptations to the call to InvalidateRect, it works for both a single button or the whole window. &lt;BR /&gt;I use:  iDummy = Invalidaterect(GetDlgItem(hDlg, IDC_MYBUTTON), null_rect, .true. ). &lt;BR /&gt;I could not find the symbol NULL_RECTANGLE, but module dfwinty contains the pointer null_rect. Though I could not find an initialization of null_rect, it works and I hope it remains working. There is further a third argument bErase for InvalidateRect which indicates wether the background should be erased or not before updating the rectangle. &lt;BR /&gt; &lt;BR /&gt;I was searching for a long time for a solution, but it appears again that this forum was very helpful. &lt;BR /&gt;Jugoslav, thanks for the help. &lt;BR /&gt; &lt;BR /&gt;Guus.</description>
      <pubDate>Wed, 01 Aug 2001 22:58:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Redrawing-a-dialog-window/m-p/960932#M21810</guid>
      <dc:creator>nijhuis</dc:creator>
      <dc:date>2001-08-01T22:58:21Z</dc:date>
    </item>
  </channel>
</rss>

