Article View: borland.public.cppbuilder.nativeapi
Article #16768Re: Own Title Bar
From: Remy Lebeau (TeamB)
Date: Mon, 28 Apr 2003 23:37
Date: Mon, 28 Apr 2003 23:37
23 lines
1723 bytes
1723 bytes
"CapStick" <lol@ljones81.fsnet.co.uk> wrote in message news:3eadb033@newsgroups.borland.com... > I suppose i will have to handle messages like > WM_NCACTIVATE > WM_NCPAINT Correct. > will i need to draw a MINIMISED window > When i need to Minimise. ? You only need to draw when you actually receive the above messages. WM_NCPAINT is not sent for minimized windows. However WM_NCACTIVATE is. In which case, you have to first determine whether the window is currently minimized or not (use IsIconic() for that). If minimized, then just pass the message as-is to DefWindowProc() and return. Otherwise, if the window is not minimized, then do your drawing as needed and then return TRUE for the message result without calling DefWindowProc(). Gambit
Technical Details
Message-ID:
<3eadbad0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3eadb033@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,a665b6a36ec6bdd1 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-28 16:42:22 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3eadb033@newsgroups.borland.com> Subject: Re: Own Title Bar Date: Mon, 28 Apr 2003 16:37:03 -0700 Lines: 25 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: 207.175.226.26 Message-ID: <3eadbad0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1051572944 207.175.226.26 (28 Apr 2003 16:35:44 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail