Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, chsmac85, dr_panther, TedMar), 939 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Engine as Parent window #321809
05/02/10 17:03
05/02/10 17:03
Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
TSG_Torsten Offline OP

User
TSG_Torsten  Offline OP

User

Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
Hi all,

I've developed a c++ Application which starts an engine-exe. But it would be better if the engine isn't visible as a seperat window on the taskbar. Is there any possible function I could use to set the parent window in order to group the engine window with my application?

Regards
TSGames

Re: Engine as Parent window [Re: TSG_Torsten] #321812
05/02/10 17:37
05/02/10 17:37
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
I believe there is such functions in winapi, you may try bing search on msdn.


3333333333
Re: Engine as Parent window [Re: Quad] #321814
05/02/10 17:43
05/02/10 17:43
Joined: Feb 2008
Posts: 18
davinski Offline
Newbie
davinski  Offline
Newbie

Joined: Feb 2008
Posts: 18
nah use google!


GameStudio A7 Extra
ultitech - Ultimative Technology
Re: Engine as Parent window [Re: davinski] #321815
05/02/10 17:48
05/02/10 17:48
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
alright, here is the c/lite-c/c++ code that will hide the window from taskbar(also from alt+tab)

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

#define WS_EX_TOOLWINDOW 0x00000080L
void main(){
	wait(1);
	ShowWindow(hWnd, SW_HIDE) ;
	SetWindowLong(hWnd, GWL_EXSTYLE, GetWindowLong(hWnd, GWL_EXSTYLE)  | WS_EX_TOOLWINDOW);
	ShowWindow(hWnd, SW_SHOW) ;
}


obviously this lite-c but you can do this with same method from c++. hWnd is the handle of the Gamestudio window.


3333333333
Re: Engine as Parent window [Re: Quad] #321820
05/02/10 18:11
05/02/10 18:11
Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
TSG_Torsten Offline OP

User
TSG_Torsten  Offline OP

User

Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
First, thanks for this very great and working example, quadraxas.

But I actually won't hide the window, but group it to my application window on the taskbar. I've got no idea what I've to look for, does this has to do with parent windows or is there a different technology on how to group the taskbar items/windows?

Regards
TSGames

Re: Engine as Parent window [Re: TSG_Torsten] #321914
05/03/10 13:03
05/03/10 13:03
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
I think grouping in the taskbar is automatically done for multiple instances of the same application. I think there is no way to group them manually, but I might be wrong.

Re: Engine as Parent window [Re: Lukas] #321916
05/03/10 13:38
05/03/10 13:38
Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
TSG_Torsten Offline OP

User
TSG_Torsten  Offline OP

User

Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
Well, actually I've seen demo-applications which spawn new windows of the same instance (the same process) but have different taskbar groups. But I want to do the inverse thing ^^ (well, this demo was for the ITaskBar3 object introduced in Windows 7, but I'm pretty sure this is already possible with the legacy taskbar).

Anyway, I've already tried SetParent. But this wasn't what I've looked for, if I use "SetParent(hWnd,My_Application_Window)" the Engine window is "inside" my application. So that won't work for me.

Any other ideas would be great laugh

Regards
TSGames


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | 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