@morongo, thanks man but I wasn't talking about an editbox, but of a listbox/combobx. thanks anyways.
@Tater yes, I know I still put them inside, it's just that I come from C/C++ programming where I used to place even hundreds of code lines inside a case... I even got to various switchs inside each other... so well it's a matter of forgetting the habit :S.
Anyways, about the code you show me, only the code concerning the fetch of list and show in static should be enough right?... but apparently it is reluctant to display the string.
Firstly, I thought that:
Should have the Buffer char like this:Code:SendDlgItemMessage(hwnd, IDC_COMBOBOX,CB_GETLBTEXT,idx,0);
But it still wouldn't work. (and it's not inside the case).Code:SendDlgItemMessage(hwnd, IDC_COMBOBOX,CB_GETLBTEXT,Buffer,256);
So.. I've no idea what's going on. And also, what do you mean by "fetch 'display' to static"? What's what you call display? (thanks in advance once again.).
EDIT: Sorry! I just had to employ the second piece of code :S Now it works perfectly, thanks once again!!!!!!!!!!!!!!