devoured elysium
devoured elysium

Reputation: 105037

How to verify if a window of another program is minimized?

How can I do this? I've tried IsWindowVisible() but that doesn't seem to do the job.

Upvotes: 5

Views: 3312

Answers (2)

paulm
paulm

Reputation: 5882

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

Thus the answer is if (IsMinimized(hwnd)) { }

Upvotes: 0

ChrisV
ChrisV

Reputation: 3423

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

Upvotes: 7

Related Questions