Jump to content

problem with child window


Kreal11
 Share

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! :)

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...