Hi everybody,
I am trying to find a workaround to change string inside dropdown but at the moment I am far away from target.
Since there is no API to change string directly (at least I did not find it) I am using DROPDOWN_GetListbox to get handle of the attached LISTBOX (DROPDOWN must be to get the handle back).
I then change the string with LISTBOX_SetString and check with LISTBOX_GetItemText that string has been changed.
##############################
hItem = WM_GetDialogItem(selectWindow, ID_DROPDOWN_0);
DROPDOWN_Expand(hItem);
if(DROPDOWN_GetListbox(hItem))
{
LISTBOX_SetString(DROPDOWN_GetListbox(hItem), text, i);
LISTBOX_GetItemText(DROPDOWN_GetListbox(hItem), i, textItem, MAX_PATH_SIZE);
}
##############################
DROPDOWN widget show me new string until I made it collapse: after that widget show old string.
Is there a trick to avoid this ?
Regards,
Paolo
I am trying to find a workaround to change string inside dropdown but at the moment I am far away from target.
Since there is no API to change string directly (at least I did not find it) I am using DROPDOWN_GetListbox to get handle of the attached LISTBOX (DROPDOWN must be to get the handle back).
I then change the string with LISTBOX_SetString and check with LISTBOX_GetItemText that string has been changed.
##############################
hItem = WM_GetDialogItem(selectWindow, ID_DROPDOWN_0);
DROPDOWN_Expand(hItem);
if(DROPDOWN_GetListbox(hItem))
{
LISTBOX_SetString(DROPDOWN_GetListbox(hItem), text, i);
LISTBOX_GetItemText(DROPDOWN_GetListbox(hItem), i, textItem, MAX_PATH_SIZE);
}
##############################
DROPDOWN widget show me new string until I made it collapse: after that widget show old string.
Is there a trick to avoid this ?
Regards,
Paolo