#keywords C++,HWND,윈도우 {{{#!gcode void FindWindowChild(HWND hParamWnd) { HWND hFindWnd = ::FindWindowEx(hParamWnd, NULL, NULL, NULL); while(hFindWnd != NULL) { // some work... if (IsWindow(hFindWnd) && ::IsWindowVisible(hFindWnd)) { // delete me //WCHAR buf[1024]; //::GetWindowText(hFindWnd, buf, 1024); //OutputDebugString(buf); FindWindowChild(hFindWnd); } hFindWnd = ::FindWindowEx(hParamWnd, hFindWnd, NULL, NULL); } } }}} ---- {{{ FindWindowChild(GetDesktopWindow()->GetSafeHwnd()); 을 하면 모든 윈도우를 검색한다. }}}