I'm using EnumChildWindows(), and I want the hwnd of the 18th child window, this is the proc I'm using;
BOOL CALLBACK EnumChildProc(HWND hwndChild, LPARAM lParam)
{
int idChild;
char buffer[999];
counter++;
if (counter == 18) {
idChild = GetWindowLong(hwndChild, GWL_ID);
GetWindowText(hwndChild,buffer,999);
return TRUE;
}
return 0;
}
Howdo I return 'buffer'???