Restore window

BlitzPlus Forums/BlitzPlus Programming/Restore window

Andres(Posted 2006) [#1]
Can anybody help me with restoring minimized window. It should be possible with API call, but which one and what parameters to use?


Pineapple(Posted 2006) [#2]
MSDN is your friend! :)

SetWindowPlacement WinAPI function should do the trick!

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/setwindowplacement.asp

Dabz

P.S. check the WINDOWPLACEMENT structure


Andres(Posted 2006) [#3]
Found this:
api_ShowWindow(QueryObject(window%, 1), 9) ;9 = SW_RESTORE


Pineapple(Posted 2006) [#4]
Nice, never thought of ShowWindow! :) I'll remember that one!

Dabz