How to check if another program window is minimized?

How can i do this? I tried IsWindowVisible(), but that doesn't seem to work.

+3
source share
2 answers

To check if a window is minimized, use IsIconic(HWND).

+6
source

windowsx.h It has #define IsMinimized(hwnd) IsIconic(hwnd)

So the answer if (IsMinimized(hwnd)) { }

0
source

Source: https://habr.com/ru/post/1715038/


All Articles