D
dragonslayer008
Hello,
I made a custom control which derives from UserControl, which handles
mouse input (e.g., rotates an object) when the mouse moves. I am
handling the OnMouseDown, OnMouseUp, OnMouseWheel, OnMouseMove
functions.
When I click on my control, it doesn't seem to get focus however,
which is preventing me from getting mouse wheel input. If I use tab,
I can get my control in focus and then it receives mouse wheel focus.
How can I make my control have focus when the user clicks it?
I made a custom control which derives from UserControl, which handles
mouse input (e.g., rotates an object) when the mouse moves. I am
handling the OnMouseDown, OnMouseUp, OnMouseWheel, OnMouseMove
functions.
When I click on my control, it doesn't seem to get focus however,
which is preventing me from getting mouse wheel input. If I use tab,
I can get my control in focus and then it receives mouse wheel focus.
How can I make my control have focus when the user clicks it?