Article View: borland.public.cppbuilder.nativeapi
Article #14954Modals forms
From: Moshe Shahar
Date: Wed, 23 Jul 2003 06:40
Date: Wed, 23 Jul 2003 06:40
19 lines
1692 bytes
1692 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:
<3f1e2df4@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,609b2dcd13e4b0d5,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-22 23:49:16 PST Reply-To: "Moshe Shahar" <msachar@tiogatech.com> From: "Moshe Shahar" <msachar@tiogatech.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Modals forms Date: Wed, 23 Jul 2003 09:40:52 +0300 Lines: 21 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: <3f1e2df4@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1058942452 62.90.94.245 (22 Jul 2003 23:40:52 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail