REDIVIVUS

Proposals / #1586

Mac ListBox_On_LB_SETTOPINDEX: int32_t __fastcc (void* pWindow ECX, int32_t nIndex EDX)

checked · by KierTaylor · submitted 2026-11-08

ECX -> [EBP-0x24] = the list box window (data via GetProp 0x00031618, client rect via GetClientRect 0x0002fdc5). EDX -> ESI = the requested top index, clamped to 0..count-1 and to the last full page (client height / item height +0x20). If it changes data +8, it stores it and invalidates (InvalidateRect 0x000312bf). It returns EDX: 0 on success, -1 (LB_ERR) for an empty list or bad index (MOV EAX,EDX at 0x000283f2). There are no stack args.

Changes 1, applied together

  1. Set prototype mac 0x00028353

    signatureundefined ListBox_On_LB_SETTOPINDEX(void)→int32_t ListBox_On_LB_SETTOPINDEX(void* pWindow, int32_t nIndex)
    conventionunknown→__fastcc