The MASM Forum

General => The Campus => Topic started by: srfpala on December 10, 2013, 10:24:37 AM

Title: Title Bar - Minimize Maximize Close
Post by: srfpala on December 10, 2013, 10:24:37 AM
I cannot figure out which constant in which proc is used to show the minimize, maximize, and the red X close button
in the Window's Title bar.
One app I have shows only the X and another all three, and I cannot find the appropriate setting(s).
I continue to look, but any help is appreciated.
   Bob
Title: Re: Title Bar - Minimize Maximize Close
Post by: dedndave on December 10, 2013, 10:53:30 AM
those are Window Styles

http://msdn.microsoft.com/en-us/library/windows/desktop/ms632600%28v=vs.85%29.aspx (http://msdn.microsoft.com/en-us/library/windows/desktop/ms632600%28v=vs.85%29.aspx)

and, a few of the Extended Window Styles

http://msdn.microsoft.com/en-us/library/windows/desktop/ff700543%28v=vs.85%29.aspx (http://msdn.microsoft.com/en-us/library/windows/desktop/ff700543%28v=vs.85%29.aspx)

even Window Class Styles

http://msdn.microsoft.com/en-us/library/windows/desktop/ff729176%28v=vs.85%29.aspx (http://msdn.microsoft.com/en-us/library/windows/desktop/ff729176%28v=vs.85%29.aspx)


not all thinkable combinations are available  :P
Title: Re: Title Bar - Minimize Maximize Close
Post by: dedndave on December 10, 2013, 11:04:34 AM
dialog boxes use Dialog Box Styles

http://msdn.microsoft.com/en-us/library/windows/desktop/ff729172%28v=vs.85%29.aspx (http://msdn.microsoft.com/en-us/library/windows/desktop/ff729172%28v=vs.85%29.aspx)

a different set of constants
but, i think any window that can be made as a dialog box can be made with CreateWindowEx
Title: Re: Title Bar - Minimize Maximize Close
Post by: Tedd on December 11, 2013, 12:51:32 AM
The default window style, WS_OVERLAPPEDWINDOW, is effectively the combination of the following styles:

WS_OVERLAPPED or WS_CAPTION or WS_SYSMENU or WS_THICKFRAME or WS_MINIMIZEBOX or WS_MAXIMIZEBOX

So you can choose to omit either of the last two to not have either of those buttons.