Hello,

Up to now, I have done quite some programming with child windows however,
until now I have always put up with the pet peeve of having the text in the
title bar of my child windows appearing sort of grayed out.

When I say "grayed out" I mean that when I compare the title bar of my child
windows to the title bar of my main application window, the text in the title
bar of the main application window is much darker than the ones of my child
windows. Also the color degradation in the title bar of the main application
window is in color where as the title bars of the child windows appear as if
they are disabled with much less color gradient effect.

In short, its like as if my child windows have their title bars disabled.

I have tried many variations of "windows Styles" as the 3rd parameter of the
CreateWindow function, but no luck!

Here is the CreateWindow command I am using for my child windows:

hdCW1 = CreateWindow(
szCW1_ClassName,szCW1_Name,
WS_CHILD | WS_CAPTION | WS_SYSMENU,
200,50,400,400,hwnd,(HMENU)CW1_ID,
(HINSTANCE) GetWindowLong(hwnd,GWL_HINSTANCE),NULL);

Basically, I would like all my child windows to have the same *vivid color
title bar look* as my main application wondow does. Is there something I can
do to accomplish this?

All suggestions would greatly help me to get rid of this pet peeve! :)

Kind regards
Robert

Re: How to enable a child window's title bar by Igor

Igor
Thu Apr 13 21:06:21 CDT 2006

"Robby" <Robby@discussions.microsoft.com> wrote in message
news:82D3680C-5300-4A4D-9762-568D729F6370@microsoft.com
> Up to now, I have done quite some programming with child windows
> however, until now I have always put up with the pet peeve of having
> the text in the title bar of my child windows appearing sort of
> grayed out.

You want an MDI application.

http://msdn.microsoft.com/library/en-us/winui/winui/WindowsUserInterface/Windowing/MultipleDocumentInterface.asp

--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925



Re: How to enable a child window's title bar by Robby

Robby
Fri Apr 14 19:37:01 CDT 2006

Thankyou Igor....

But for now this seems a little too complicated for me... and further more,
MDI's are discussed near the end of my book, so I will wait until I get there
:)

For now, I will let the title bar look like the way it is!

See ya!

--
Best regards
Robert


"Igor Tandetnik" wrote:

> "Robby" <Robby@discussions.microsoft.com> wrote in message
> news:82D3680C-5300-4A4D-9762-568D729F6370@microsoft.com
> > Up to now, I have done quite some programming with child windows
> > however, until now I have always put up with the pet peeve of having
> > the text in the title bar of my child windows appearing sort of
> > grayed out.
>
> You want an MDI application.
>
> http://msdn.microsoft.com/library/en-us/winui/winui/WindowsUserInterface/Windowing/MultipleDocumentInterface.asp
>
> --
> With best wishes,
> Igor Tandetnik
>
> With sufficient thrust, pigs fly just fine. However, this is not
> necessarily a good idea. It is hard to be sure where they are going to
> land, and it could be dangerous sitting under them as they fly
> overhead. -- RFC 1925
>
>
>