Minimize Code( z order )
Minimize Code( z order )
Hi I need to find a way to minimize the game with a code. For example I have Made a button class so that I click on it and it does a specified task I already made a button to exit calling exit( 0 ). But, what is the code for minimize and the code for maximize may be useful as well. Thanks all.
Last edited by cameron on July 8th, 2013, 5:40 pm, edited 1 time in total.
Computer too slow? Consider running a VM on your toaster.
Re: Minimize Code
Here you have a full list of states you can put the window in: http://msdn.microsoft.com/en-us/library ... s.85).aspx
You are probably looking for "ShowWindow ( hWnd, SW_MINIMIZE );"
You are probably looking for "ShowWindow ( hWnd, SW_MINIMIZE );"
ʕ •ᴥ•ʔ
Re: Minimize Code
Thanks LuX, but slight problem I have a fullscreen window and I cant get it back to screen. Any suggestions?
Computer too slow? Consider running a VM on your toaster.
Re: Minimize Code
Something that would work like alt + tab would work nice.
Computer too slow? Consider running a VM on your toaster.
Re: Minimize Code
Alt+Tab doesn't minimize the window, just change target, eg. the Z order of the window. For that effect you would have to change the Z order: http://msdn.microsoft.com/en-us/library ... s.85).aspx
ʕ •ᴥ•ʔ
Re: Minimize Code
Thanks LuX works great .
Computer too slow? Consider running a VM on your toaster.
Re: Minimize Code
well Alt+Enter works for taking it out of fullscreen (already embedded in Dx9/10/11)
(tho it isn't code per-se, since user hits them keys xP)
(tho it isn't code per-se, since user hits them keys xP)
always available, always on, about ~10 years c/c++, java[script], win32/directx api, [x]html/css/php/some asp/sql experience. (all self taught)
Knows English, Spanish and Japanese.
[url=irc://irc.freenode.net/#pchili]irc://irc.freenode.net/#pchili[/url] [url=irc://luisr14.no-ip.org/#pchili]alt[/url] -- join up if ever want real-time help or to just chat --
Knows English, Spanish and Japanese.
[url=irc://irc.freenode.net/#pchili]irc://irc.freenode.net/#pchili[/url] [url=irc://luisr14.no-ip.org/#pchili]alt[/url] -- join up if ever want real-time help or to just chat --
Re: Minimize Code
Is there any way to change the z order of a window if it is clicked on in the task bar?
Computer too slow? Consider running a VM on your toaster.
Re: Minimize Code( z order )
you would have to intercept the WM_ACTIVATE message and do the z-order code if the window is being activated (meaning if LOWORD(wparam) == WA_ACTIVE)
always available, always on, about ~10 years c/c++, java[script], win32/directx api, [x]html/css/php/some asp/sql experience. (all self taught)
Knows English, Spanish and Japanese.
[url=irc://irc.freenode.net/#pchili]irc://irc.freenode.net/#pchili[/url] [url=irc://luisr14.no-ip.org/#pchili]alt[/url] -- join up if ever want real-time help or to just chat --
Knows English, Spanish and Japanese.
[url=irc://irc.freenode.net/#pchili]irc://irc.freenode.net/#pchili[/url] [url=irc://luisr14.no-ip.org/#pchili]alt[/url] -- join up if ever want real-time help or to just chat --
Re: Minimize Code( z order )
I am not good with win32 stuff where would be a good place to do it?
Computer too slow? Consider running a VM on your toaster.