[email protected]
[Top] [All Lists]

Re: Colored bar caption ?

Subject: Re: Colored bar caption ?
From: Thomas Fjellstrom
Date: Fri, 19 Aug 2005 20:01:25 -0600
On August 17, 2005 08:40 am, Christopher Thompson wrote:
> On August 16, 2005 09:04 pm, a g wrote:
> > Hi all,
> > I want to make a single top-level widget with colored
> > bar caption, whose color is different with the normal
> > blue bar caption in Windows XP. I understand that it
> > is an unusual and difficult thing because Windows
> > itselft manages caption of all windows. Normally, the
> > setting in Windows XP make all windows change.
> > I also looked at the source of QWidget.cpp, it seems
> > that it does not allow us to repaint the caption bar.
> > I still hope there is some way out.
> I think your best option is to have a window without any decoration at all,
> and handle the caption yourself.  Windows basically doesn't allow what you
> are trying to do.

Last time I played with win32, it is possible by grabbing the WM_NCPAINT 
message. It lets you paint into the "Non Client" areas of the window.

Thomas Fjellstrom

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Colored bar caption ?, Thomas Fjellstrom <=