OpenIcon not restoring window to former size
C#
1
Posts
1
Posters
0
Views
1
Watching
-
The documentation for OpenIcon says that it will restore a window to its previous size and location. This isn't happening - it is restoring the window but not to its previous size. Is there something extra that needs to be done when calling it from C#? The ReturnValue indicates success.
[DllImport("user32.dll")] static extern bool OpenIcon(IntPtr hwnd); ... IntPtr wHandle = process.MainWindowHandle; bool ReturnValue = OpenIcon (wHandle);