Article View: borland.public.cppbuilder.nativeapi
Article #4959Re: stop undocked controls from closing
From: Remy Lebeau (TeamB)
Date: Fri, 14 Oct 2005 20:44
Date: Fri, 14 Oct 2005 20:44
18 lines
1787 bytes
1787 bytes
"Stefano Bonifazi" <stefboombastic@libero.it> wrote in message news:434ffd95$1@newsgroups.borland.com... > Is there a way to prevent a floating undocked control from being > closed by pushing the "x" on its windows's upper right corner? If you are using a TForm, then set the CanClose parameter to False in the OnCloseQuery event, or the Action parameter to caNone in the OnClose event. If you are creating your own HWND via CreateWindow/Ex(), then your window procedure will have to intercept the WM_SYSCOMMAND message. The message's wParam value will contain the SC_CLOSE flag when the window is being closed. Discard the message without passing it to DefWindowProc() to prevent the closure. Gambit
Technical Details
Message-ID:
<43501a5f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!83.128.0.12.MISMATCH!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!newsfeeder.wxs.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<434ffd95$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,30cfa311941310b6 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <434ffd95$1@newsgroups.borland.com> Subject: Re: stop undocked controls from closing Date: Fri, 14 Oct 2005 13:44:20 -0700 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <43501a5f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1129323103 68.69.17.41 (14 Oct 2005 13:51:43 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!83.128.0.12.MISMATCH!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!newsfeeder.wxs.nl!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail