Show proccess window
-
Im trying to open a minimized window, How would i do this? I tryed sendmessage(handle, 0x0112, ** , 0) ** = WM_SHOWWINDOW and WM_SETFOCUS both didnt work. Help please.
On my wrong computer right now so don't have access to MSDN - but try WM_RESTOREWINDOW(or whatever it's called) or WM_MAXIMIZE - essentially Show Window is used when the window is hidden (different from minimized), and set focus just set's the focus, it won't restore it from it's minimized position.
-
Im trying to open a minimized window, How would i do this? I tryed sendmessage(handle, 0x0112, ** , 0) ** = WM_SHOWWINDOW and WM_SETFOCUS both didnt work. Help please.
[DllImport("user32.dll")]
private static extern bool ShowWindow(IntPtr winHandle, uint op);public enum SW : uint {
HIDE = 0,
SHOWNORMAL = 1,
NORMAL = 1,
SHOWMINIMIZED = 2,
SHOWMAXIMIZED = 3,
MAXIMIZE = 3,
SHOWNOACTIVATE = 4,
SHOW = 5,
MINIMIZE = 6,
SHOWMINNOACTIVE = 7,
SHOWNA = 8,
RESTORE = 9,
SHOWDEFAULT = 10,
FORCEMINIMIZE = 11
}...
ShowWindow(handle, (uint)SW.SHOW);
...Jeff
-
[DllImport("user32.dll")]
private static extern bool ShowWindow(IntPtr winHandle, uint op);public enum SW : uint {
HIDE = 0,
SHOWNORMAL = 1,
NORMAL = 1,
SHOWMINIMIZED = 2,
SHOWMAXIMIZED = 3,
MAXIMIZE = 3,
SHOWNOACTIVATE = 4,
SHOW = 5,
MINIMIZE = 6,
SHOWMINNOACTIVE = 7,
SHOWNA = 8,
RESTORE = 9,
SHOWDEFAULT = 10,
FORCEMINIMIZE = 11
}...
ShowWindow(handle, (uint)SW.SHOW);
...Jeff