ok i've scrapped the enumchildwindows idea and gone for a while loop, although im not sure if i'm getting the hwnd i want or not:
counter = 0;
while (counter <= 18) {
child = GetWindow(window,GW_CHILD);
if (IsChild(window,child)) {
GetWindow(child,GW_HWNDNEXT);
counter++;
}
else { counter++; }
}
HDC hdc = GetDC(child);
wsprintf(data,"%d",(INT)child);
return 3;
}
however now that i have that hwnd, i want to get the data it has but i have no idea on how to do it