Yeah, you do need to have experience with C to do any Windows programming with it. The hwnd is the handle to the parent window (which you found), and it seems that instead of outputting the handles in some sort of variable/struct it is sending them to a function (lpEnumFunc), the lParam is irrelavent (set it to 0).
I found an example of using this function from the 5th Edition of Programming Windows used in a MDI app:
Code:
case IDM_WINDOW_CLOSEALL: // Attempt to close all children
EnumChildWindows (hwndClient, CloseEnumProc, 0) ;
return 0 ;
BOOL CALLBACK CloseEnumProc (HWND hwnd, LPARAM lParam)
{
if (GetWindow (hwnd, GW_OWNER)) // Check for icon title
return TRUE ;
SendMessage (GetParent (hwnd), WM_MDIRESTORE, (WPARAM) hwnd, 0) ;
if (!SendMessage (hwnd, WM_QUERYENDSESSION, 0, 0))
return TRUE ;
SendMessage (GetParent (hwnd), WM_MDIDESTROY, (WPARAM) hwnd, 0) ;
return TRUE ;
}
Obviously you will want to modify the CloseEnumProc, to check what control the hwnd is referencing and return TRUE. Good Luck!