🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to make a window modal

#11253
From: Bob Gonder
Date: Fri, 20 Feb 2004 20:35
14 lines
1597 bytes
Remy Lebeau (TeamB) wrote:

>"Bob Gonder" <notbg@notmindspring.invalid> wrote in message
>
>> Just add the window style WS_EX_TOPMOST
>> to your CreateWindow call (see DS_SYSMODAL and DS_MODALFRAME).
>
>That only effects the dialog's appearance, not its behaviors in the code.

Oops, I use DialogBox not CreateWindow for the modal dialogs.  Help on
DialogBox says what you've stated.

OP could read the Remarks section of the DialogBox help for some
pointers on implementing his own version.
Technical Details
Message-ID: <ohrc30ltvlht2b7hnl4iogs3kgs0tpq3cv@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4036276C.5E202C7F@gmx.de> <m2wu6h7iiz.fsf@madbox2.local> <6mnc30hv57ul4tbeqfaud5butj68fqdign@4ax.com> <40366738$1@newsgroups.borland.com>

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-20 12:40:22 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How to make a window modal
Date: Fri, 20 Feb 2004 12:35:52 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <ohrc30ltvlht2b7hnl4iogs3kgs0tpq3cv@4ax.com>
References: <4036276C.5E202C7F@gmx.de> <m2wu6h7iiz.fsf@madbox2.local> <6mnc30hv57ul4tbeqfaud5butj68fqdign@4ax.com> <40366738$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.31.164.73
X-Trace: newsgroups.borland.com 1077309352 67.31.164.73 (20 Feb 2004 12:35:52 -0800)
Lines: 16
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail