判断窗口是否置顶

bool IsTopmost(HWND hwnd)

{

   if (GetWindowLong(hwnd, GWL_EXSTYLE) & WS_EX_TOPMOST)

    return true;

   return false;

}

原文地址:https://www.cnblogs.com/dengpeng1004/p/4954919.html