0
votes

I'm catching WindowProc and looking for WM_SYSCOMMAND / SC_MINIMIZE, but it does only fire the message when i minimize the window by clicking in her taskbar icon.

When i click in the window minimize button the message ain't fired.

switch (Msg)
{
case WM_SYSCOMMAND:
    switch (wParam)
    {
    case SC_MINIMIZE:
        {
            OutputDebugStringW(L"Window minimized!");
            //return TRUE;
        }
    }
    break;
}