Author Topic: Prototype centered title window  (Read 764 times)


  • Administrator
  • Member
  • ******
  • Posts: 10264
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Prototype centered title window
« on: January 31, 2022, 08:09:35 PM »
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.
hutch at movsd dot com    :biggrin:  :skrewy: