Discussion Locked

How to change font in Window Titlebar?

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I want to programmatically change the font in a VB Active Window titlebar? I can do this by changing the system property "Active Titlebar Font", but I want to do this programmatically in VB 6.

5 replies

by fgarber

Click the right mouse button on the desktop. Click on appearance. Click on the active window title bar and at the bottom of the window is the font selection dropdown.

by shyl

I know about this already. If you look at my question carefully, it was how to change it programmatically in VB 6 environment.

by peter ritchie

You can't change the title bar font for a specific window without causing all the other windows/apps to redraw their title bar.

You can intercept the WM_NCPAINT message and paint the title bar however you please--placing whatever font/text/graphics you want in there.

You'll have to check the size of the title bar in order to paint properly.

I'll assume you know how to intercept a standards windows message with VB.

This discussion is closed to new replies.