Article View: borland.public.cppbuilder.nativeapi
Article #15032Modal forms in modalless forms
From: Moshe Shahar
Date: Tue, 22 Jul 2003 13:36
Date: Tue, 22 Jul 2003 13:36
19 lines
1709 bytes
1709 bytes
Hi. I add a modalless form to my app with WS_EX_APPWINDOW ExStyle and with the desktop window as parent. Now, I have 2 buttons on the task bar window. One for the MainForm and one for the new form (lets call it MyForm). So, where is the problem ? The problem is that when I display a modal form like ShowMessage or InputBox or a common dialog for open, save and colors from the MyForm the MainForm pop up to the front and the modal form appear on it, and when it closed the MyForm return to the front. I replaced the ShowMessage with API MessageBox and it solved this one. But I still have problems with the others. How do I prevent it from happend ?
Technical Details
Message-ID:
<3f1d3dee@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,34b8c1844f10f9f0 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-22 06:41:29 PST Reply-To: "Moshe Shahar" <msachar@tiogatech.com> From: "Moshe Shahar" <msachar@tiogatech.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Modal forms in modalless forms Date: Tue, 22 Jul 2003 16:36:43 +0300 Lines: 22 Organization: Tioga Technologies 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: 62.90.94.245 Message-ID: <3f1d3dee@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1058881006 62.90.94.245 (22 Jul 2003 06:36:46 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail