News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

A prototype interface for a CreateWindowEx window

Started by hutch--, January 26, 2022, 07:00:54 PM

Previous topic - Next topic

hutch--

Attached is a test piece that uses simple static controls for both the title bar and status bar to present colour, font and alignment control to the programmer. The example centres the caption on the title bar in a larger font that windows default in a font of your choice. The status bar has the same level of control but has the same background colour as the main client area.

It uses an old trick with WM_NCHITTEST to control where the caption can be grabbed by while excluding the client area.

It also uses a sizeable border which possibly will look unusual on some computer configurations, on my computers with a blue window border, it looks OK. Test piece builds at 13312 bytes which leaves ample room to fill the app with plenty of code.