Original post:
This is strange. Press Win+I to open Win 10's "Settings" app, then run this code. It'll show 0. Then minimize the "Settings" window, and run this again. It still shows 0, as if the window isn't minimized. So how do we tell when a UWP window is actually minimized?
Note: The opposite API call of IsZoomed_() works perfectly to detect maximized UWP windows.
Code: Select all
hWnd=FindWindow_(0,"Settings")
Debug IsIconic_(hWnd)