Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I register to receive notification of input device changes with RegisterRawInputDevices.
If a usb mouse or keyboard is added or removed while a CMenu item is open, the application will no longer receive keyboard/mouse inputs basically locking the application. I found this on the web:

Question: Why my pop menu freeze after registered raw input notify[^]


Does anyone have a solution or workaround?

What I have tried:

I tried the suggested solution in Question: Why my pop menu freeze after registered raw input notify (microsoft.com), of calling EndMenu() in OnInputDeviceChange but it does not work.

I found the menu closes and function is restored if I hit the Windows Start Menu. What is it sending to make this happen?
Posted
Updated 20-Jan-21 15:08pm
Comments
Richard MacCutchan 20-Jan-21 11:10am    
Since that code does not work, and is more than ten years old, it seems somewhat foolish to use it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900