Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent the mouse cursor from being hidden after calling CComboBox::ShowDropDown?

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?

like image 997
Aidan Ryan Avatar asked Dec 15 '25 21:12

Aidan Ryan


1 Answers

Call

SetCursor(LoadCursor(NULL, IDC_ARROW));

immediately after the ShowDropDown() call.

like image 105
Aidan Ryan Avatar answered Dec 19 '25 05:12

Aidan Ryan