Answer the question
In order to leave comments, you need to log in
How to disable close button?
Please tell us how to do this, do I need to make the close button, which is located along with minimize and expand, inactive, via WinApi? And does it work in windows 8?
Answer the question
In order to leave comments, you need to log in
Not sure about Windows 8 but give it a try..
void DisableCloseButton(HWND hwnd)
{
EnableMenuItem(GetSystemMenu(hwnd, FALSE), SC_CLOSE, MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question