-
Notifications
You must be signed in to change notification settings - Fork 0
Title Bar Buttons
Dominic Hayes - Feren OS Dev edited this page Dec 14, 2025
·
5 revisions
tbd
tbd
tbd
The width of the button is calculated using the button texture's width and height values, before then being calculated against the Windows Classic Caption Button Height. Therefore, if we assume that:
- X = the button texture's width
- Y = the button texture's height
- Z = the button height ("Caption Buttons" - 4)
The button width is: ( X / Y ) * Z, then round to nearest integer / full number.
Note
If you look at Windows Classic, you will see a vertical gap of 2px above and below each Caption Button - msstyles in Windows XP inherit this too, meaning to get the actual button height you must subtract both gaps, thus subtract 4.