Change the color of the application title.

With Delphi 7, it tries to change the color of the title bar of a software from a window theme. I saw code that allows you to change ALL header lines of all programs, but I just want to change my program.

Has anyone seen / done anything like this? Ignore the component if necessary.

+3
source share
3 answers

I believe that Windows sends the WM_NCPAINT message to the application when it should draw the window frame, including the title bar. The default behavior is to return to the default Windows handler, which draws a default border. You can replace this or recolor the header section immediately after.

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

+4
source

Stijn , , (). , WM_NCPAINT WM_NCACTIVATE. , , ( ) , . , , , , , .

- , . . " XP " , Windows API, Delphi. , , .

+2

You can take a look at the skinning library. ExpressExpress from DevExpress is good.

+1
source

Source: https://habr.com/ru/post/1727587/


All Articles