Jump to content
Sign in to follow this  

problem with child window

Recommended Posts


Hi guys, i have a problem with a child window: i have created 2 guis with GUICreate() and i used $WS_EX_TOOLWINDOW on the second gui. Now, i want that this child window moves with the main window (like an anchor) and that doesn't appear in taskbar, like browser alerts or something like that. Is there a way to do that? Thanks in advance! :)

Share this post

Link to post
Share on other sites

Try this:

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$hMainGUI = GUICreate("MainGui", 600, 400)
$hChildGUI = GUICreate("", 160, 160, 20, 20, $WS_THICKFRAME, $WS_EX_MDICHILD+$WS_EX_TOOLWINDOW, $hMainGUI)

GUISetState(@SW_SHOW, $hMainGUI)
GUISetState (@SW_SHOW, $hChildGUI)

While 1
$nMsg = GUIGetMsg(1)
Switch $nMsg[0]
If $nMsg[1]=$hMainGUI Then Exit


Also, you might want to take a look here.

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