![]() I provide here the WinArrange.ahk written as a wrapper for those two functions. With some patience, I was able to understand InsertInteger() provided in the help file ( DllCall ), but I do not have the knowledge to explain it. But those parameters have to passed as pointers to an Array and a Structure. You can also pass the list of windows handles, and limit the tiling/cascading to a set of windows. You can also set the area where the windows should be Tiled / Cascaded. Minimum DLL Version : user32.dll, Minimum operating systems : Windows 95, Windows NT 4.0 If you specify the MDITILE_ZORDER flag, CascadeWindows arranges the windows in Z order.Ĭalling CascadeWindows causes all maximized windows to be restored to their previous size. If this value is not specified, the windows are arranged using the order specified in the lpKids array.įor other parameters, refer: TileWindows (above) Remarks :īy default, CascadeWindows arranges the windows in the order provided by the lpKids array, but preserves the Z-Order. MDITILE_ZORDER: Windows 2000/XP: Arranges the windows in Z order. ![]() MDITILE_SKIPDISABLED: Prevents disabled multiple-document interface (MDI) child windows from being cascaded. This parameter can be one or more of the following values. The CascadeWindows function cascades the specified child windows of the specified parent window. Remarks : Calling TileWindows causes all maximized windows to be restored to their previous size. To get extended error information, call GetLastError. If the function fails, the return value is zero. If the function succeeds, the return value is the number of windows arranged. If this parameter is NULL, all child windows of the specified parent window (or of the desktop window) are arranged. LpKids : Pointer to an array of handles to the child windows to arrange. This parameter is ignored if lpKids is NULL. If this parameter is NULL, the client area of the parent window is used.ĬKids : Specifies the number of elements in the array specified by the lpKids parameter. lpRect : Pointer to a RECT structure that specifies the rectangular area, in client coordinates, within which the windows are arranged. MDITILE_VERTICAL Tiles windows vertically. MDITILE_HORIZONTAL Tiles windows horizontally. This parameter can be one of the following valuesÂ-optionally combined with MDITILE_SKIPDISABLED to prevent disabled multiple-document interface (MDI) child windows from being tiled. If this parameter is NULL, the desktop window is assumed. HwndParent : Handle to the parent window. The TileWindows function tiles the specified child windows of the specified parent window. Take a look at the MSDN reference (if you are a techie), or just skip it and continue reading. Tile windows horizontally : DllCall( "TileWindows", uInt,0, Int,1, Int,0, Int,0, Int,0 )Ĭascade windows : DllCall( "CascadeWindows", uInt,0, Int,4, Int,0, Int,0, Int,0 ) Tile windows vertically : DllCall( "TileWindows", uInt,0, Int,0, Int,0, Int,0, Int,0 ) Simple is the simple solution: You can bind any of these DllCalls to a Hotkey! There are two seperate functions: TileWindows and CascadeWindows in user32.dll which does the job, and even more. Tile Windows Horizontally/ Vertically With Only Left Click Tile Windows Vertically, how? Too difficult? The search does not reveal much posts on the topic. Close those windows! This topic is about doing it from a script. Right-click on an empty area on the Taskbar and select Tile Windows Horizontally. Minimize all windows and open two instances of windows explorer. How to programmatically Tile / Cascade windows ?įoreword: If you are one those not been using the Tile / Cascade facility available in the taskbar, then try it now.
0 Comments
Leave a Reply. |