Chad,
the information you have is correct.
The window title bar is handled by Windows, because
can be customized by the user.
The only way to modify the title bar of a single window is to subclass your
form and intercept the event for painting non-client areas (I do
not remember it right now).
One other solution (it is what I did) is to create your own title bar as an
usercontrol, and dump it to every window you want to change. In this
way you do not have to duplicate the code for every window.
But I warn you, to mimic a title bar (even in part) is a lot of work.
m.
> -----Original Message-----
> From: Chad Silva [SMTP:csilva@f...]
> Sent: Thursday, July 26, 2001 11:07 AM
> To: professional vb
> Subject: [pro_vb] Setting the title bar color on an MDI application
>
>
> I'm searching far and wide for a way to set the color of the title bar for
>
> an MDI application. The application is writtin in VB6 SP3, and runs on NT
>
> 4.0 SP 5.
>
> I've been looking around a lot and the only solutions I have been able to
> find are:
>
> 1) Not having a title bar, and creating my own with a PictureBox and
> mimicing a title bar. This seems incredibly tedious, especially for the
> number of forms already in place.
>
> 2) Subclassing. Ben Baird has posted an excellent example of setting the
> title bar to a gradient on
> http://www.vbthunder.com/source/forms/gradtitle.htm. Gradient aside, this
>
> seems a bit more complex than I was looking for, and has a side effect of
> crashing the IDE if i have a breakpoint in the wrong place or some errors
> that would normally be trapped(making debugging problematic).
>
> 3) I've looked at SetSysColors, but that sets the title bar for all
> windows and that's not what is needed.
>
> I'm hoping there is just something that is right under my nose and I am
> missing...Is there a simple (or better than those ways i've mentioned) way
>
> to set the title bar color of an MDI form? (or a regular form, for that
> matter). Any advice or pointers would be most appreciated!
>
> Thanks in advance
> Chad
>