DockA() [v1.0]

×÷Õß: majkinetor ×î½ü¸üÐÂʱ¼ä: nonexistent


Using dock module you can glue windows to an AHK window.

Docked windows are called Clients and the window that keeps their position relative to itself is called the Host. Once Clients are connected to the Host, this group of windows will behave like single window - moving, sizing, focusing, hiding and other OS events will be handled by the module so that the “composite window” behaves like the single window.

This module is version of Dock module that supports only AHK hosts (hence A in the name). Unlike Dock module, it doesn’t uses system hook to monitor windows changes.

DockA(HHost="", HClient="", DockDef="")
DockA_(HHost+0, HClient+0, DockDef, "")

¹ØÓÚº¯ÊýµÄ²ÎÊýºÍ·µ»ØÖµ, Çë²ÎÔÄÆäÔ´Âë.

±¸×¢

This module is part of the Forms Framework package.

See at Dock for regular Windows:
* GUID=a7a64970-955f-126a-96cc-1a6e80e6c03f

¹ØÓڴ˺¯Êý(¼¯)µÄ¸üÐÂϸ½ÚºÍ×¢ÒâÊÂÏî, Çë²Î¼û AutoHotkey ÂÛ̳: http://www.autohotkey.com/forum/viewtopic.php?t=53317

Ðí¿É

´Ëº¯Êý(¼¯)ÊÇ»ùÓÚ BSD Ðí¿ÉµÄ¿ªÔ´ÏîÄ¿. ÏëÁ˽âÐí¿ÉÏêÇé, Çë²Î¼û http://creativecommons.org/licenses/BSD/

ʾÀý

; #Include DockA.ahk
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

Gui, 2:Add, Text, HwndH2, client
Gui, 2:Show, h100 w200
Gui, 2:+LastFound
cGui := WinExist("A")

Gui, 1:Add, Text, HwndH1, host
Gui, 1:Show, h100 w200
Gui, 1:+LastFound
hGui := WinExist("A")

DockA(hGui, cGui, "x(1) y()")
Return

GuiClose:
ExitApp