<?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>sujet Nested modeless dialog boxes dans Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Nested-modeless-dialog-boxes/m-p/979404#M25693</link>
    <description>I'm trying to nest three to four layers of modeless dialog boxes with several dialog boxes on each level.  My question is do you need to setup a message loop for each modeless dialog box created, for each level or just one at the top to handle the whole thing ??  The message loop I'm talking about is &lt;BR /&gt;         do while( GetMessage (mesg, NULL, 0, 0) )  &lt;BR /&gt;            if ( DlgIsDlgMessage(mesg) .EQV. .FALSE. ) then &lt;BR /&gt;               Lret = TranslateMessage( mesg ) &lt;BR /&gt;               Iret = DispatchMessage( mesg ) &lt;BR /&gt;            end if &lt;BR /&gt;         end do &lt;BR /&gt; &lt;BR /&gt;Thanks  &lt;BR /&gt;Ray</description>
    <pubDate>Thu, 10 Jan 2002 00:42:44 GMT</pubDate>
    <dc:creator>Ray_R_1</dc:creator>
    <dc:date>2002-01-10T00:42:44Z</dc:date>
    <item>
      <title>Nested modeless dialog boxes</title>
      <link>https://community.intel.com/t5/Software-Archive/Nested-modeless-dialog-boxes/m-p/979404#M25693</link>
      <description>I'm trying to nest three to four layers of modeless dialog boxes with several dialog boxes on each level.  My question is do you need to setup a message loop for each modeless dialog box created, for each level or just one at the top to handle the whole thing ??  The message loop I'm talking about is &lt;BR /&gt;         do while( GetMessage (mesg, NULL, 0, 0) )  &lt;BR /&gt;            if ( DlgIsDlgMessage(mesg) .EQV. .FALSE. ) then &lt;BR /&gt;               Lret = TranslateMessage( mesg ) &lt;BR /&gt;               Iret = DispatchMessage( mesg ) &lt;BR /&gt;            end if &lt;BR /&gt;         end do &lt;BR /&gt; &lt;BR /&gt;Thanks  &lt;BR /&gt;Ray</description>
      <pubDate>Thu, 10 Jan 2002 00:42:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Nested-modeless-dialog-boxes/m-p/979404#M25693</guid>
      <dc:creator>Ray_R_1</dc:creator>
      <dc:date>2002-01-10T00:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Nested modeless dialog boxes</title>
      <link>https://community.intel.com/t5/Software-Archive/Nested-modeless-dialog-boxes/m-p/979405#M25694</link>
      <description>What do you mean "nested modeless dialogs"? Are those actually child dialogs (as in tab controls)? Whatever, that message loop you posted looks fine to me. One message loop is enough. &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
      <pubDate>Thu, 10 Jan 2002 22:41:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Nested-modeless-dialog-boxes/m-p/979405#M25694</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2002-01-10T22:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Nested modeless dialog boxes</title>
      <link>https://community.intel.com/t5/Software-Archive/Nested-modeless-dialog-boxes/m-p/979406#M25695</link>
      <description>Huh, I was wrong. I just checked modeless dialogs in my app and found that they don't respond to tab properly (which I didn't know for two years ;-)).  &lt;BR /&gt; &lt;BR /&gt;Now, I don't know what DlgIsDlgMessage exactly does (I have an old CVF version) so perhaps it does the stuff correctly. IsDialogMessage is actually related with processing of tab key, default buttons (Return and Esc) and similar. However, I dug out an article in MS's knowledge base (&lt;A href="http://support.microsoft.com/default.aspx?scid=kb;EN-US;q71450" target="_blank"&gt;Q71450&lt;/A&gt;) which explains the way. So, if your code above  &lt;BR /&gt;doesn't work (remind you, regarding tab key), the following line does: &lt;BR /&gt;&lt;PRE&gt;if (.not.IsDialogMessage(GetActiveWindow(), mesg))&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
      <pubDate>Thu, 10 Jan 2002 23:45:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Nested-modeless-dialog-boxes/m-p/979406#M25695</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2002-01-10T23:45:02Z</dc:date>
    </item>
  </channel>
</rss>

