| Previous | Next |
| ERROR_PRIVATE_DIALOG_INDEX | ERROR_NO_WILDCARD_CHARACTERS |
ERROR_LISTBOX_ID_NOT_FOUND
The expected list box cannot be found by identifier
Child controls are commonly located by integer control ID. For child windows, the hMenu parameter of CreateWindowEx carries that identifier, and dialog resources assign IDs to controls for lookup and command routing.
This status points to an identity mismatch rather than a missing list item. Dynamic UI construction, duplicated resource IDs, looking under the wrong parent, and using a list-item index where a control ID is expected are practical causes.
What to check
- Log the parent/dialog
HWNDtogether with the requested control ID. - Confirm the control was created successfully before the lookup.
- Inspect the resource template or dynamic creation code for the actual ID.
- Do not confuse zero-based item indexes with child-window identifiers.
For a generic control lookup failure, ERROR_CONTROL_ID_NOT_FOUND is broader. This status specifically identifies a list-box lookup context.
References
Looking for a different code? Search another status or error code.