Kreal11 Posted December 26, 2011 Posted December 26, 2011 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!
taietel Posted December 27, 2011 Posted December 27, 2011 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 WEndAlso, you might want to take a look here. Things you should know first...In the beginning there was only ONE! And zero... Progs: Create PDF(TXT2PDF,IMG2PDF) 3D Bar Graph DeskGadget Menu INI Photo Mosaic 3D Text
Kreal11 Posted December 27, 2011 Author Posted December 27, 2011 Thanks, it worked with a little bit editing.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now