🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11147

Re: How to make a window modal

#11147
From: Remy Lebeau (TeamB)
Date: Mon, 23 Feb 2004 18:47
22 lines
1753 bytes
"Martin Golm" <golm@gmx.de> wrote in message
news:403A22A2.8277EB3C@gmx.de...

> In tWindow::WndProc() the WM_DESTROY messages is
> handled by calling PostQuitMessage(0). Thus tDialog reponds
> to closing with sending a WM_QUIT message.

You should have mentioned that earlier, that was an important detail to
know.

> That should be enough to correctly break the GetMessage
> loop in tDialog::ShowModal(), shouldn't it.

Assuming ShowModal() is the one that actually receives the WM_QUIT message,
yes.  However, if your tWindow were running in the context of another
message queue, including the main message queue, the WM_QUIT would have the
potential of either aborting the program altogether, or being lost
altogether.


Gambit
Technical Details
Message-ID: <403a48d5@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4036276C.5E202C7F@gmx.de> <40366739@newsgroups.borland.com> <403746C4.E97F73E6@gmx.de> <40382b87$1@newsgroups.borland.com> <403A22A2.8277EB3C@gmx.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,214f35d58464ad5
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-23 10:40:27 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4036276C.5E202C7F@gmx.de> <40366739@newsgroups.borland.com> <403746C4.E97F73E6@gmx.de> <40382b87$1@newsgroups.borland.com> <403A22A2.8277EB3C@gmx.de>
Subject: Re: How to make a window modal
Date: Mon, 23 Feb 2004 10:47:24 -0800
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.138.253
Message-ID: <403a48d5@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1077561557 67.22.138.253 (23 Feb 2004 10:39:17 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail