I want to be able to access all my windows that are currently visible in my application. I tried using
EnumChildWindows((HWND)::AfxGetMainWnd(WNDENUMPROC)EnumChildProc, 0))
but it fails, so my first question is what's wrong with my call to
EnumChildWindows & secondly can you please provide sample code on how to call it correctly & get the windows from it.

Thanks in advance