2

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?

tshepang
  • 12,111
  • 21
  • 91
  • 136
Aidan Ryan
  • 11,389
  • 13
  • 54
  • 86

1 Answers1

3

Call

SetCursor(LoadCursor(NULL, IDC_ARROW));

immediately after the ShowDropDown() call.

Aidan Ryan
  • 11,389
  • 13
  • 54
  • 86
  • I used this statement and got this error: `'LoadCursorA' : cannot convert parameter 2 from 'int' to 'LPCSTR'` what am I doing wrong here ? – Itban Saeed Aug 21 '15 at 11:38
  • First parameter to LoadCursor must be `NULL` if you want to use one of the pre-defined cursor constants. See https://msdn.microsoft.com/en-us/library/windows/desktop/ms648391%28v=vs.85%29.aspx. – Aidan Ryan Sep 01 '15 at 20:20