Lines Matching refs:focus_item
70 INT focus_item; /* Item that has the focus */ member
403 if (LISTBOX_GetItemRect( descr, descr->focus_item, &rect ) == 1) in LISTBOX_UpdateSize()
560 if (!ignoreFocus && (descr->focus_item == index) && in LISTBOX_PaintItem()
613 if (!ignoreFocus && (descr->focus_item == index) && in LISTBOX_PaintItem()
699 if (descr->focus_item == -1) return; in LISTBOX_DrawFocusRect()
702 if (LISTBOX_GetItemRect( descr, descr->focus_item, &rect ) != 1) return; in LISTBOX_DrawFocusRect()
708 LISTBOX_PaintItem( descr, hdc, &rect, descr->focus_item, ODA_FOCUS, !on ); in LISTBOX_DrawFocusRect()
1055 if (!descr->nb_items && (descr->focus_item != -1) && descr->caret_on && in LISTBOX_Paint()
1062 LISTBOX_PaintItem( descr, hdc, &rect, descr->focus_item, ODA_FOCUS, FALSE ); in LISTBOX_Paint()
1077 if (i == descr->focus_item) in LISTBOX_Paint()
1112 LISTBOX_PaintItem( descr, hdc, &focusRect, descr->focus_item, ODA_FOCUS, FALSE ); in LISTBOX_Paint()
1249 if (LISTBOX_GetItemRect( descr, descr->focus_item, &rect ) == 1) in LISTBOX_SetHorizontalPos()
1375 INT oldfocus = descr->focus_item; in LISTBOX_SetCaretIndex()
1384 descr->focus_item = index; in LISTBOX_SetCaretIndex()
1483 TRACE("old focus %d, index %d\n", descr->focus_item, index); in LISTBOX_MoveCaret()
1519 descr->focus_item = index; in LISTBOX_MoveCaret()
1533 INT oldfocus = descr->focus_item; in LISTBOX_InsertItem()
1607 descr->focus_item = oldfocus; /* focus not changed */ in LISTBOX_InsertItem()
1744 if (descr->focus_item >= descr->nb_items) in LISTBOX_RemoveItem()
1746 descr->focus_item = descr->nb_items - 1; in LISTBOX_RemoveItem()
1747 if (descr->focus_item < 0) descr->focus_item = 0; in LISTBOX_RemoveItem()
1765 descr->focus_item = 0; in LISTBOX_ResetContent()
2059 descr->self, x, y, index, descr->focus_item); in LISTBOX_HandleLButtonDown()
2272 if (index == descr->focus_item) index++; in LISTBOX_HandleTimer()
2282 if (index == descr->focus_item) return FALSE; in LISTBOX_HandleTimer()
2295 if (!LISTBOX_HandleTimer( descr, descr->focus_item, LISTBOX_Timer )) in LISTBOX_HandleSystemTimer()
2341 if (index == -1) index = descr->focus_item; in LISTBOX_HandleMouseMove()
2361 if ((IS_MULTISELECT(descr)) || (descr->selected_item == descr->focus_item)) in LISTBOX_HandleKeyDown()
2367 MAKEWPARAM(LOWORD(key), descr->focus_item), in LISTBOX_HandleKeyDown()
2377 if (descr->focus_item >= descr->page_size) in LISTBOX_HandleKeyDown()
2378 caret = descr->focus_item - descr->page_size; in LISTBOX_HandleKeyDown()
2383 caret = descr->focus_item - 1; in LISTBOX_HandleKeyDown()
2390 if (descr->focus_item + descr->page_size < descr->nb_items) in LISTBOX_HandleKeyDown()
2391 caret = descr->focus_item + descr->page_size; in LISTBOX_HandleKeyDown()
2396 caret = descr->focus_item + 1; in LISTBOX_HandleKeyDown()
2405 caret = descr->focus_item - (page * descr->page_size) + 1; in LISTBOX_HandleKeyDown()
2407 else caret = descr->focus_item-LISTBOX_GetCurrentPageSize(descr) + 1; in LISTBOX_HandleKeyDown()
2415 caret = descr->focus_item + (page * descr->page_size) - 1; in LISTBOX_HandleKeyDown()
2417 else caret = descr->focus_item + LISTBOX_GetCurrentPageSize(descr) - 1; in LISTBOX_HandleKeyDown()
2427 if (descr->style & LBS_EXTENDEDSEL) caret = descr->focus_item; in LISTBOX_HandleKeyDown()
2430 LISTBOX_SetSelection( descr, descr->focus_item, in LISTBOX_HandleKeyDown()
2431 !descr->items[descr->focus_item].selected, in LISTBOX_HandleKeyDown()
2439 caret = descr->focus_item; in LISTBOX_HandleKeyDown()
2480 MAKEWPARAM(charW, descr->focus_item), in LISTBOX_HandleChar()
2485 caret = LISTBOX_FindString( descr, descr->focus_item, str, FALSE); in LISTBOX_HandleChar()
2530 descr->focus_item = 0; in LISTBOX_Create()
2810 return descr->focus_item; in ListBoxWndProc_common()
2870 return descr->focus_item; in ListBoxWndProc_common()
3045 if ((descr->focus_item != -1) && (descr->in_focus)) in ListBoxWndProc_common()
3046 LISTBOX_RepaintItem( descr, descr->focus_item, ODA_FOCUS ); in ListBoxWndProc_common()
3053 if ((descr->focus_item != -1) && (descr->in_focus)) in ListBoxWndProc_common()
3054 LISTBOX_RepaintItem( descr, descr->focus_item, ODA_FOCUS ); in ListBoxWndProc_common()
3095 if (descr->focus_item != -1) in ListBoxWndProc_common()
3103 if ((descr->focus_item != -1) && descr->caret_on) in ListBoxWndProc_common()
3104 LISTBOX_RepaintItem( descr, descr->focus_item, ODA_FOCUS ); in ListBoxWndProc_common()
3259 if (descr->focus_item != -1) in ListBoxWndProc_common()