How to prevent the mouse cursor from being hidden after calling CComboBox::ShowDropDown?
-
08-06-2019 - |
Question
In my MFC application, when I call CComboBox::ShowDropDown(), the mouse cursor is hidden until interaction with the combo box completes (when the combo box loses focus.) It doesn't reappear when the mouse is moved, like it does with edit boxes.
How can I keep the mouse cursor from being hidden?
Solution
Call
SetCursor(LoadCursor(NULL, IDC_ARROW));
immediately after the ShowDropDown() call.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow