News:

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

Main Menu

Prototype centered title window

Started by hutch--, January 31, 2022, 08:09:35 PM

Previous topic - Next topic

hutch--

What I was after with this prototype was more accurate control of the window title bar so you could use larger fonts while maintaining a resizable window. The status bar is also a static control so that the colour is use defined rather than Windows default.

It needs to have the minimum resize controlled otherwise you can get incorrect interaction between the two static controls and a minimum width so that the window cannot be resized to a 1 pixel point but these are only trivial details. To use a toolbar or menu or both, it would need a child window that is positioned below the title bar static control and be located with MoveWindow() when the window is resized.

I originally prototyped the idea in PowerBASIC but that forum devolved into another sewerage throwing competition so I rewrote it in 64 bit MASM.