How do I make a window with only minimizebox and closebox ? All I?ve achieved this far is a maximizebox thats grayed in between them
Posted on 2001-12-24 07:16:56 by WinCC
Check up the styles of your CreateWindow function and make sure you don't use the overlapped window style...
Posted on 2001-12-24 07:50:35 by Axial
I don`t use overlapped window style. Maybe someone can give an example of CreateWindowEx that makes an window with only minimizebox and Close(X)
Posted on 2001-12-24 08:03:08 by WinCC
WinCC:
Unfortunatly you can not do it by usual window styles.
The only way IMHO is to create a window without a title bar
and create your own title bar with your own buttons and make them hadle the same routines as _x standart buttons do.
Posted on 2001-12-24 08:57:46 by The Svin
Or you can create a dialog instead of a window (unless what you want to do can ony be done with a window).
Posted on 2001-12-24 18:45:13 by CodeLover
:)
IMHO it doesn't solve the problem. If you use minimize box you can not get rid of greyed maximize box.
Proof if I'm wrong. I'd love to learn.
Posted on 2001-12-24 18:50:28 by The Svin
I?ve made a quick&dirty solution for this "problem"
Posted on 2001-12-31 13:41:38 by WinCC
nice. i would like to see the souce code if you dont mind.
Posted on 2001-12-31 15:47:35 by smurf
Here is the source.
Posted on 2001-12-31 15:57:44 by WinCC