Fenster verschieben durch GUI-Klick

  • Hi!

    Wie schaff ich es, dass ich eine GUI nicht nur durch die Titlebar verschieben kann? Also dass man auf eine "Controlfreie" Stelle klickt und dann das Fenster verschieben kann. Geht doch sicher mit nem DllCall oder so.

    fabs

    Einmal editiert, zuletzt von fabs (5. Oktober 2008 um 22:25)

  • Hi,

    Zitat


    GUICtrlCreateLabel

    Creates a static Label control for the GUI.
    ______________________________________________________________________________________________________________________________________________________

    The extended style $GUI_WS_EX_PARENTDRAG can be used to allow the dragging of the parent window for windows that don't have a titlebar (no $WS_CAPTION style in GUICreate).

    Beispiel:

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>

    [/autoit] [autoit][/autoit] [autoit]

    $Form1 = GUICreate("Form1", 633, 447, 372, 251)
    $Label1 = GUICtrlCreateLabel("", 0, 0, 633, 447,"",$GUI_WS_EX_PARENTDRAG)
    GUISetState(@SW_SHOW)

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

    [/autoit] [autoit][/autoit] [autoit]

    EndSwitch
    WEnd

    [/autoit]