判断是否最小化if(IsIconic(hWnd)) ;//最小化窗口 判断是否最大化if(IsZoomed(hWnd)) ;//最大化窗口 判断是否激活if(GetForegroundWindow() == hWnd) ;//前台激活窗口