1
Programming / Re: ClassiCube porting thread
« on: May 03, 2024, 09:28:47 pm »
I can just guess but Alt+F4 is a special key combination (to close a window) that might not be passed on verbatim to the Window Procedure in the WM_CHAR message.
Maybe you have to catch the WM_TRANSLATEACCEL message and handle that special key combination there.
Or, reading the help for WM_CHAR, Alt-F4 might be translated into a WM_COMMAND or WM_SYSCOMMAND message (likely a WM_SYSCOMMAND message with uscmd = SC_CLOSE).
Maybe you have to catch the WM_TRANSLATEACCEL message and handle that special key combination there.
Or, reading the help for WM_CHAR, Alt-F4 might be translated into a WM_COMMAND or WM_SYSCOMMAND message (likely a WM_SYSCOMMAND message with uscmd = SC_CLOSE).