This is sort of in the same spirit as our previous
exercise in writing a timed message box, but this is much
Here, we use the handy-dandy
to get us out of menu mode.
MenuTooLateProc(HWND hwnd, UINT uiMsg, UINT idEvent, DWORD dwTime)
SendMessage(hwnd, WM_CANCELMODE, 0, 0);