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
Check up the styles of your CreateWindow function and make sure you don't use the overlapped window style...
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)
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.
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.
Or you can create a dialog instead of a window (unless what you want to do can ony be done with a window).
:)
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.
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.
I?ve made a quick&dirty solution for this "problem"
nice. i would like to see the souce code if you dont mind.
Here is the source.