Jump to content

Toolwindows within Windows


 Share

Recommended Posts

GUICtrlCreateTreeView

umm create treeview??? not that control here is what i meant, i found it....

based on Senton-Bomb's func

#include <GUIConstants.au3>
$big = GuiCreate( "Big Win", 988,748, -1, -1 )
GUISetState()
$inside = GuiCreate( "1", 982, 200, 0, 0, Default, $WS_EX_TOOLWINDOW )
GUISetState()
$inside2 = GuiCreate( "2", 538, 200, 0, 222, Default, $WS_EX_TOOLWINDOW )
GUISetState()
_SetParent( "Inside Window", "Big Win" )
_SetParent( "shit", "Big Win" )

While 1 
WEnd

#cs ----------------------------------------------------------------------------
   
    AutoIt Version: 3.2.4.9
    Author:         Senton-Bomb
   
        $TitleP: The title of the parent window
        $TitleC: The title of the child window
       
        If a window doesn't exist, It returns -1, otherwise it returns 1
   
    Script Function:
    Wrapper for the "SetParent" dllcall + Example.
   
#ce ----------------------------------------------------------------------------

; Script Stizzle - Add your codeizzle

Func _SetParent($TitleP, $TitleC)
    If WinExists($TitleP) Then
        If WinExists($TitleC) Then
            $HwndP = WinGetHandle($TitleP)
            $HwndC = WinGetHandle($TitleC)
            $user32 = DllOpen("user32.dll")
            DllCall($user32, "str", "SetParent", "HWnd", $HwndP, "HWnd", $HwndC)
            Return 1
        Else
            Return -1
        EndIf
    Else
        Return -1
    EndIf
EndFunc   ;==>_SetParent

[center][/center]

Link to comment
Share on other sites

No... The Sleep is needed, otherwise your CPU will get eaten by nothing. The sleep adds a moment of pause (well duh!) that slows the process down, therefore eating less CPU.

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...