HeaderPane
Main
Hide
Share Link
Print

VirtualItemChanged

Notifies a combo box control using a virtual data source that items have been changed.

C

BOOL WINAPI SftBox_VirtualItemChanged(HWND hwndCtl, LONG index);

C++

BOOL CSftBox::VirtualItemChanged(LONG index);

Parameters

hwndCtl

The window handle of the combo box control.

index

The zero-based index number of the item which has been modified in the virtual data source. If -1 is used, all items in the virtual data source are considered altered.

Returns

The return value is TRUE if the function was successful, otherwise FALSE is returned. If the combo box control is not using a virtual data source (see VirtualInitialize), this function will fail.

Comments

The VirtualItemChanged function notifies a combo box control using a virtual data source that items have been changed.

By notifying the combo box control that items in the virtual data source have changed, the items in the dropdown portion can be repainted if needed, reflecting their new attributes.

If index is the index of the selected item (see GetCurSel) or -1, the static portion is also updated. The edit control portion of a simple or dropdown combo box is not updated. To update it, call SetCurSel with the index of the selected item.

See Also C/C++ API | Categories | Notifications


Last Updated 11/21/2026 - (email)
© 2026 Softel vdm, Inc.