Sign in to follow this  
Followers 0
Hypertrophy

how to put window on top of directx

7 posts in this topic

#1 ·  Posted (edited)

I am faced with a problem on making my autoit window appear as a child window on a 3rd party app that uses a class called "DxWndClass". Is there a general solution to making controls appear on top of directx controls?

here's the code im using to embed the gui onto the window. i notice that the directx is drawing over it. solution?

$Child_GUI = GUICreate("", $clientsize[0], $clientsize[1], 0, 0, $WS_POPUP)
DllCall("user32.dll", "int", "SetParent", "hwnd", WinGetHandle($Child_GUI), "hwnd", WinGetHandle($list[$n][0]))
GUISetState(@SW_SHOW, $Child_GUI)
Edited by Hypertrophy

Share this post


Link to post
Share on other sites



I don't know if this is what you want, but in your GuiCreate line you can use the $WS_EX_TOPMOST extended style that will force the window to be on top of anything else.


010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

yes but will it even be on top of the directx?

Edit: $WS_EX_TOPMOST has no effect. is there ANY way to overcome this problem? drawing over directx?

Edited by Hypertrophy

Share this post


Link to post
Share on other sites

bump

Share this post


Link to post
Share on other sites

there is no way of drawing a normal gui on top of a fullscreen directx app (afaik)


Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro

Share this post


Link to post
Share on other sites

as mentioned in another thread dealing with window issues there may be a valid solution... why not embed the window into a gui? then you can make it fullscreen and always on top. granted it wont be TRUE full screen like direct x is..because you will still see the task bar at the bottom, but this is close.


Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Share this post


Link to post
Share on other sites

as mentioned in another thread dealing with window issues there may be a valid solution... why not embed the window into a gui? then you can make it fullscreen and always on top. granted it wont be TRUE full screen like direct x is..because you will still see the task bar at the bottom, but this is close.

how do i do this?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0