I have a Console / Form hybrid application in C#, and at the moment, i have to rely on user32.dll to show/hide the console window. But I can't seem to find a way in which i can determine if the console window is hidden or visible (without storing the value myself)
+3
A:
The IsWindowVisible function retrieves the visibility state of the specified window.
C# Signature from pinvoke.net:
[DllImport("user32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool IsWindowVisible(IntPtr hWnd);
dtb
2010-04-16 20:37:32
That will not check whenever the window is in fact visible. Read the msdn article.
devoured elysium
2010-05-14 01:07:13