REDIVIVUS

Proposals / #1584

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

checked · by KierTaylor · submitted 2026-11-08

ECX -> ESI = the list box window (its data is fetched via GetProp 0x00031618). EDX -> EDI = the new selection index (-1 clears; otherwise it must be 0..count-1). It selects via 0x0002856e (ECX=window, EDX=data, [ESP]=index, [ESP+4]=0) and returns 0 on success or -1 (LB_ERR), via CMP/SBB or MOV EAX,-1. There are no stack args. This is the LB_SETCURSEL handler of ListBox_WndProc.

Changes 1, applied together

  1. Set prototype mac 0x000282fa

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