Article View: borland.public.cppbuilder.nativeapi
Article #11244Re: How to make a window modal
From: Bob Gonder
Date: Fri, 20 Feb 2004 19:30
Date: Fri, 20 Feb 2004 19:30
17 lines
1555 bytes
1555 bytes
Thomas Maeder [TeamB] wrote: >Martin Golm <golm@gmx.de> writes: > >> Lets say, I'd like to create a print preview window, or some kind of an >> options dialog. Of course, such kind of windows should be modal. > >This doesn't answer your question, but I think that most modal dialogs are >just annoyances. So why bother? Agree... But, to answer the Q (I think). Just add the window style WS_EX_TOPMOST to your CreateWindow call (see DS_SYSMODAL and DS_MODALFRAME). AFAIK, Modality is a Style, and has little to do with code.
Technical Details
Message-ID:
<6mnc30hv57ul4tbeqfaud5butj68fqdign@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-mailReferences:
<4036276C.5E202C7F@gmx.de> <m2wu6h7iiz.fsf@madbox2.local>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 11:40:19 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 11:30:04 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <6mnc30hv57ul4tbeqfaud5butj68fqdign@4ax.com> References: <4036276C.5E202C7F@gmx.de> <m2wu6h7iiz.fsf@madbox2.local> 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.52 X-Trace: newsgroups.borland.com 1077305404 67.31.164.52 (20 Feb 2004 11:30:04 -0800) Lines: 19 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