Change the color of the applications title bar

colors, delphi, titlebar

Solution

I believe Windows sends the WM_NCPAINT message to an application when it should paint the window frame including the title bar. The default behaviour is to fall back to the default Windows handler which draws the default frame. You could replace this, or re-paint the title-bar section right after.

This looks like a good example: http://delphi.about.com/od/adptips2006/qt/draw_captionbar.htm

Problem

With Delphi 7 trying to change the color of the title bar of the software from the window theme. I have seen code which allows you to change ALL the title bars of all programs, but I am just wanting to change my program. Anyone seen/done anything like this? Don't mind paying for a component if needed.

Original source