I want a person to be able to click something in a listbox and as soon as he does the text in an edit box changes accordingly.
All my controls are in the main window, I am using LB_SELCHANGE and
HWND hList = GetDlgItem(hwnd, IDC_LIST);
int count = SendMessage(hList, LB_GETCURSEL, 0, 0);
can anyone give me a small example program so I can see where I am going wrong.