Sign in to follow this  
Followers 0
Kreal11

problem with child window

3 posts in this topic

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]
Case $GUI_EVENT_CLOSE
If $nMsg[1]=$hMainGUI Then Exit

EndSwitch
WEnd

Also, you might want to take a look here.

Share this post


Link to post
Share on other sites

Thanks, it worked with a little bit editing.

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