Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is HWND visible?

Tags:

c#

windows

hwnd

Those darned users and their minimized windows.

In C#, if I have a window's HWND, is there a way to tell if it is visible on the desktop?

like image 419
directedition Avatar asked Nov 15 '09 20:11

directedition


1 Answers

The GetWindowPlacement function returns a WINDOWPLACEMENT structure which has a field showCmd:

Specifies the current show state of the window.

The details of this read as though you would be setting the window state, but I suspect that this is because they've been copied from somewhere else and not updated.

like image 189
ChrisF Avatar answered Sep 25 '22 17:09

ChrisF