Gamestudio Links
Zorro Links
Newest Posts
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
Zorro 3.01 recoded MMI function issue
by 11honza11. 06/13/26 11:40
Stooq now requires an API key
by AndrewAMD. 06/11/26 17:55
Z9 getting Error 058
by k_ivan. 06/10/26 14:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 1,296 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Hiding window. LITE-C? #264542
05/06/09 18:11
05/06/09 18:11
Joined: Jul 2004
Posts: 1,710
MMike Offline OP
Serious User
MMike  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,710
Hello

How do i load the engine, wihout maximizing, or even showing.. i want it to be a background mode, no window, not on start menu, totally hidded... only show on task bar.

thanks.

Re: Hiding window. LITE-C? [Re: MMike] #264545
05/06/09 18:28
05/06/09 18:28

M
mercuryus
Unregistered
mercuryus
Unregistered
M



Code:
#include <acknex.h>
#include <default.c>
#include <windows.h>

void main(){
	wait(1);
	ShowWindow(hWnd, SW_SHOWMINIMIZED);
}


Re: Hiding window. LITE-C? [Re: ] #264550
05/06/09 18:45
05/06/09 18:45
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Online
Senior Expert
Quad  Online
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
also
ShowWindow(hWnd, SW_HIDE);

will completely hide it, it will be only visible at task manager's processes tab.


3333333333
Re: Hiding window. LITE-C? [Re: Quad] #264561
05/06/09 20:18
05/06/09 20:18
Joined: Jul 2004
Posts: 1,710
MMike Offline OP
Serious User
MMike  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,710
thanks guys..

Re: Hiding window. LITE-C? [Re: MMike] #264577
05/06/09 22:35
05/06/09 22:35
Joined: Oct 2006
Posts: 175
G
Gumby22don Offline
Member
Gumby22don  Offline
Member
G

Joined: Oct 2006
Posts: 175
Would that be worth using while initialising a level, say? And if so, how do you then show it back to normal window mode?

ShowWindow(hWnd, 0)?

Don
have a a great day

Re: Hiding window. LITE-C? [Re: Gumby22don] #264590
05/07/09 06:29
05/07/09 06:29

M
mercuryus
Unregistered
mercuryus
Unregistered
M



Take a look in windows.h.
There are constants defined for ShowWindow().
They start with SW_ (SW_HIDE, SW_NORMAL, ...).
hWnd is set by the engine to the engines window handle.
(A click on the icon in the taskbar will restore it also)

Last edited by mercuryus; 05/07/09 06:30.
Re: Hiding window. LITE-C? [Re: ] #264591
05/07/09 06:32
05/07/09 06:32
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Online
Senior Expert
Quad  Online
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
SW_RESTORE restores back to it's previous position.

you can also check msdn for detailed explanation of the function


3333333333

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1