#keywords C++,Z-Order,ìœˆë„ {{{#!gcode 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 }}} ë¹ ë¥¸ 번호ì¼ìˆ˜ë¡ 위