判断窗口是否置顶 bool IsTopmost(HWND hwnd) { if (GetWindowLong(hwnd, GWL_EXSTYLE) & WS_EX_TOPMOST) return true; return false; }