bool IsTopmost(HWND hwnd)
{
if (GetWindowLong(hwnd, GWL_EXSTYLE) & WS_EX_TOPMOST)
return true;
return false;
}