Ok. I am making a program. It is pretty cool. It is a window manager. You can close, disable, enable, hide, show, set caption, send keys, etc.

I want a function to disable the close("X") button of a window. I have EnumWindows called. All the others work fine. How would I disable a window's close("X") button?

11-22-2001

Garfield

There is a certain Window Style (WS_*) that you are to specify when you create the window with CreateWindow(). I just can't remember the specification.

I can't remember what it is, but I'll continue to look for the link.

--Garfield

11-22-2001

SyntaxBubble

Well, that...

Thanks for looking for it. I know there's WS_CLOSEBOX or something like that, but I'm not sure. I know that in the class there's a CS_NOCLOSE that does it, but I'm not sure how to create that class style to a window.

11-22-2001

Garfield

You might want to try the WS_MINIMIZEBOX. I'm not sure it that shows the "X", but it might disable it.