<?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: Close all but 1 QuickWin window in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Close-all-but-1-QuickWin-window/m-p/953826#M20260</link>
    <description>Ah, but of course! Thank you, Steve.</description>
    <pubDate>Thu, 31 May 2001 22:16:17 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2001-05-31T22:16:17Z</dc:date>
    <item>
      <title>Close all but 1 QuickWin window</title>
      <link>https://community.intel.com/t5/Software-Archive/Close-all-but-1-QuickWin-window/m-p/953824#M20258</link>
      <description>I have a QuickWin program in which I would like to implement a "Close All" command--except that I want to leave one window open, unit 10.  The other unit numbers are not known, although there's only one in the range 20-29, one in the range 30-39, .... Now, this works &lt;BR /&gt; &lt;BR /&gt;&lt;FONT size="+1"&gt;&lt;PRE&gt;
  DO I = 11, 99 
    CLOSE(I) 
  ENDDO
&lt;/PRE&gt;&lt;/FONT&gt;&lt;BR /&gt; &lt;BR /&gt;but I need to deallocate arrays according to what unit is actually closed.  &lt;BR /&gt; &lt;BR /&gt;I thought something like the following would be helpful, but GetUnitQQ() always returned -1. &lt;BR /&gt; &lt;BR /&gt;NextUnit = GetUnitQQ(GetWindow(GetHwndQQ(10), GW_HWNDNEXT)) &lt;BR /&gt; &lt;BR /&gt;Does anyone know how to fix this up? Otherwise I'm left with restoring and minimizing window unit 10 whenever it gets the focus, and that seems quite clunky! &lt;BR /&gt; &lt;BR /&gt;&lt;FONT size="+1"&gt;&lt;PRE&gt;
  INTEGER :: I, nUnit, NextWin 
 
! Close all child windows except LUN=10 
  I = FOCUSQQ(10) 
  nUnit = NextWin(10) 
  DO WHILE(nUnit .NE. 10) 
    CALL MY_CLOSE_ROUTINE(nUnit) 
    I = INQFOCUSQQ(nUnit) 
    IF (nUnit .EQ. 10) nUnit = NextWin(10) 
  ENDDO 
	: 
	: 
INTEGER FUNCTION NextWin(RefWin) 
  USE DFLIB 
  IMPLICIT NONE 
  INTEGER, INTENT(IN) :: RefWin 
  INTEGER :: I, nWin 
  TYPE (QWINFO) :: wc 
 
  wc%type = QWIN$RESTORE 
  I = SetWSizeQQ(RefWin,wc)  
  wc%type = QWIN$MIN 
  I = SetWSizeQQ(RefWin,wc)  
  I = INQFOCUSQQ(nWin) 
  IF (nWin .EQ. RefWin) THEN 
    wc%type = QWIN$RESTORE 
    I = SetWSizeQQ(RefWin,wc)  
  ENDIF 
  NextWin = nWin 
END FUNCTION NextWin 
 
&lt;/PRE&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;I appreciate what a helpful forum this is! &lt;BR /&gt;Dick</description>
      <pubDate>Thu, 31 May 2001 05:28:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Close-all-but-1-QuickWin-window/m-p/953824#M20258</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-05-31T05:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Close all but 1 QuickWin window</title>
      <link>https://community.intel.com/t5/Software-Archive/Close-all-but-1-QuickWin-window/m-p/953825#M20259</link>
      <description>You can use INQUIRE (UNIT=n,OPENED=logicalvar) to see if a unit is open, and then process accordingly.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 31 May 2001 06:02:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Close-all-but-1-QuickWin-window/m-p/953825#M20259</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-05-31T06:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Close all but 1 QuickWin window</title>
      <link>https://community.intel.com/t5/Software-Archive/Close-all-but-1-QuickWin-window/m-p/953826#M20260</link>
      <description>Ah, but of course! Thank you, Steve.</description>
      <pubDate>Thu, 31 May 2001 22:16:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Close-all-but-1-QuickWin-window/m-p/953826#M20260</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-05-31T22:16:17Z</dc:date>
    </item>
  </channel>
</rss>

