Building the Right Environment to Support AI, Machine Learning and Deep Learning
Many people was asking how to change the title bar of a window. Here is a small sample, which draws a color gradient on the title bar.
First, we create a simple dialog box without system menu. Then, we have to intercept the WM_NCPAINT message and set up an own hanler, which draws the title bar of the window. To draw on the title bar, we must set up a CWindowDC device context, to draw on non-client area of the window. To draw the system buttons, we use the DrawFrameControl member.
The small sample project draws a gradient title bar for a dialog window, with close button. (I compiled with VisualC++ 5.0)