Skip to content
Snippets Groups Projects
Commit 613092a6 authored by Lawson Whitney's avatar Lawson Whitney Committed by Alexandre Julliard
Browse files

Made LB_GETCURSEL return focus_item if no item has been selected.

parent cc5d924b
No related branches found
No related tags found
No related merge requests found
......@@ -2229,6 +2229,9 @@ LRESULT WINAPI ListBoxWndProc( HWND hwnd, UINT msg,
case LB_GETCURSEL16:
case LB_GETCURSEL:
retvalue = descr->selected_item;
if (retvalue == -1) retvalue = descr->focus_item;
/* otherwise, if the user tries to move the selection with the */
/* arrow keys, we will give the application something to choke on */
goto END;
case LB_GETTOPINDEX16:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment