mfcmousevisibilityccombobox

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?


Solution

  • Call

    SetCursor(LoadCursor(NULL, IDC_ARROW));

    immediately after the ShowDropDown() call.