🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16690

Re: Own Title Bar

#16690
From: CapStick
Date: Tue, 29 Apr 2003 18:51
36 lines
2102 bytes
"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3eadbad0$1@newsgroups.borland.com...
>
> "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
>
> Thanks For The Pointers Remy
Much appreciated.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.471 / Virus Database: 269 - Release Date: 10/04/2003
Technical Details
Message-ID: <3eaec951@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!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3eadb033@newsgroups.borland.com> <3eadbad0$1@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-29 11:56:14 PST
From: "CapStick" <lol@ljones81.fsnet.co.uk>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3eadb033@newsgroups.borland.com> <3eadbad0$1@newsgroups.borland.com>
Subject: Re: Own Title Bar
Date: Tue, 29 Apr 2003 19:51:56 +0100
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 62.25.166.11
Message-ID: <3eaec951@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1051642193 62.25.166.11 (29 Apr 2003 11:49:53 -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!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail