winapi - WS_OVERLAPPEDWINDOW and WM_SYSKEYDOWN -


setwindowlong(hwnd, gwl_style, ws_overlappedwindow); 

if add line above, program receive every second press of alt key. catch alt key wm_syskeydown event. must mention though, wm_syskeyup still detects every release of alt key.

so when repeatedly press alt key log looks this:

down up down up

any idea why that, , how fix problem still retain normal application window look? (that why overlapped window flag used).

update: found ws_sysmenu causes same problem, must related sys menu hotkeys.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -