hi how can i get the selected string in a listbox?
this is what i got sofar :
case WM_COMMAND:
switch (HIWORD(wParam))
{
case LBN_SELCHANGE:
index=SendMessage(List_Child,LB_GETCURSEL,0,0);
SendMessage(List_Child,LB_GETTEXT,(WPARAM)index,(L PARAM)List_Selected);
MessageBox(NULL,List_Selected,"Selected:",MB_OK);
selected=true;
break;
}
but the messagebox does not display anything...thnx