Hi,
I have successfully created a Combo using CreateWindow API.
hdlgid = CreateWindow ("COMBOBOX", "",
WS_CHILD | CBS_SIMPLE | CBS_SORT | WS_VSCROLL,
100, 100, 180, 180, g_hWndMain, NULL, g_hInst, NULL) ;
when i add data to combo one by one, it gets added successfully.
but fails in case of a loop.
Fails in this case:-
for (cntr = 0; cntr<g_NoOfCount; cntr++)
{
SendMessage(hdlgid,CB_ADDSTRING, (WPARAM)0,(DWORD)cntr);
}
kindly suggest any solution to fill data in combo using loop.