C++/(Windows)Z-Order 상위 윈도 비교 Edit Diff Refresh Backlink Random Search History Help Setting Hide Show int GetZOrder(HWND hTarget) { int index = 0; HWND hNext = ::GetTopWindow(NULL); do { hNext = ::GetNextWindow(hNext, GW_HWNDNEXT); if (hNext == hTarget) break; ++index; } while (hNext); return index; } // 예 HWND hWnd1 = ::FindWindow(NULL, L"Daum - 모으다 잇다 흔들다 - Internet Explorer"); HWND hWnd2 = ::FindWindow(NULL, L"Google - Internet Explorer"); CString str; str.Format(_T("Daum %d; Google %d"), GetZOrder(hWnd1), GetZOrder(hWnd2)); OutputDebugString(str.GetBuffer(0)); Daum 255 Google 73 빠른 번호일수록 위 C++ Z-Order 윈도 이 글에는 0 개의 댓글이 있습니다. Please enable JavaScript to view the comments powered by Disqus. comments powered by Disqus