home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 July & August
/
Pcwk78b98.iso
/
Smart30
/
ENGLISH
/
PRODUCTS
/
LOTUS018.DSK
/
TILEHORZ.SMM
< prev
next >
Wrap
INI File
|
1992-05-07
|
5KB
|
328 lines
[ver]
4
[sty]
_macro.sty
[files]
[charset]
82
ANSI (Windows, IBM CP 1252)
[revisions]
0
[prn]
PostScript Printer
[port]
LPT1:
[lang]
1
[desc]
Tile Horizontally open docs
Lotus WPD Marketing
Advanced
Indirection, Windows API's
autorun
705280560
30
673469260
280
2
0
0
0
0
0
[fopts]
0
1
0
0
[lnopts]
2
Body Text
1
[docopts]
5
2
[GramStyle]
[l1]
0
[pg]
2
42 0 11 0 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
66 0 0 1025 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
[edoc]
<:#293,9360>Macro by <+!>Charlie Pappas<-!>
<:#284,9360>
<:#284,9360>define FindWindow() DllCall("user,FindWindow,HCC", %1, %2)
<:#284,9360>define isiconic(hWnd) DLLCall("user,isiconic,HA", %1)
<:#568,9360>define GetClassName(hwnd, name, len) dllcall("user,GetClassName,HHCH", %1, %2, %3)
<:#284,9360>define GetClientRect(hWnd, lpRect) dllcall("user,GetClientRect,HHN", %1, %2)
<:#284,9360>define GetWindow(hwnd, cmd) dllcall("user,GetWindow,HHH", %1, %2)
<:#568,9360>Define MoveWindow() DllCall("User,MoveWindow,HHHHHHA",%1,%2,%3,%4,%5,%6)
<:#284,9360>define SetFocus() DllCall("user,SetFocus,HH",%1)
<:#284,9360>
<:#284,9360>define GW_HWNDNEXT 2
<:#284,9360>define GW_CHILD 5
<:#284,9360>
<:#284,9360>
@Function@<:#293,9360>function tilehorz()
IF IsNewWave()
Message("Macro not available while running under HP NewWave.")
Exit Function
ENDIF
ignorekeyboard(2)
<:#284,9360>CheckMenuItem(1, "&Window", "Tile &Horizontally", 1)
<:#284,9360>if not CheckMenuItem(1, "&Window", "Tile &Horizontally", 1)
<:#568,9360> insertmenuitem(1, "&Window", 2, "Tile &Horizontally", getrunningmacrofile$(), "Horizontally tile the open document windows")
<:#284,9360> return 1
<:#284,9360>endif
<:#284,9360>CheckMenuItem(1, "&Window", "Tile &Horizontally", 0)
<:#284,9360>dim rect(4)
<:#284,9360>dim children(1)
<:#284,9360>hwnd = FindWindow("AmiProWndA", 0)
<:#284,9360>child = GetWindow(hwnd, GW_CHILD)
<:#284,9360>class = "";
<:#284,9360>while (child)
<:#284,9360> GetClassName(child, &class, 80)
<:#284,9360> if class = "MDIClient"
<:#284,9360> hwnd = child
<:#284,9360> getclientrect(hwnd, &rect)
<:#284,9360> break
<:#284,9360> endif
<:#284,9360> child = GetWindow(child, GW_HWNDNEXT)
<:#284,9360>wend
<:#284,9360>child = GetWindow(hwnd, GW_CHILD)
<:#284,9360>class = "";
<:#284,9360>i = 0
<:#284,9360>while (child)
<:#284,9360> GetClassName(child, &class, 80)
<:#284,9360> if class = "MDICHILD"
<:#284,9360> if not isiconic(child)
<:#284,9360> i = i + 1
<:#284,9360> ArrayInsert(&children, i, child)
<:#284,9360> endif
<:#284,9360> endif
<:#284,9360> child = GetWindow(child, GW_HWNDNEXT)
<:#284,9360>wend
<:#284,9360>if i << 1
<:#284,9360> return 0
<:#284,9360>endif
<:#284,9360>if getopenfilecount() <;> i
<:#284,9360> rect(4) = rect(4) - 72
<:#284,9360>endif
<:#284,9360>cy = rect(4) / i
<:#284,9360>apprestore(getdocinfo$(1))
<:#284,9360>for j = 1 to i
<:#284,9360> MoveWindow(children(j), 0, (cy * (j - 1)), rect(3), cy, 1)
<:#284,9360>next
<:#284,9360>end function
<:#284,9360>
>
[Embedded]
00003336
>
[macsum] 1
tilehorz 0 0 9 14
[macse]
14 tilehorz
0 1317
13
11 00000109
0 3 "Macro not available while running under HP NewWave."
6 0
15
9
0 32 2
0 518 1 "&Window" "Tile &Horizontally" 1
0 518 1 "&Window" "Tile &Horizontally" 1
13
1 3
11 00000338
0 802
13
0 527 1 "&Window" 2 "Tile &Horizontally" [X] "Horizontally tile the open document windows"
5 1
15
9
0 518 1 "&Window" "Tile &Horizontally" 0
5 4
21 1 [X]
5 1
21 2 [X]
0 284 "user,FindWindow,HCC" "AmiProWndA" 0
13
8 3
0 284 "user,GetWindow,HHH" "{3}" 5
13
8 4
7 ""
8 5
6 4
11 00000742
0 284 "user,GetClassName,HHCH" "{4}" &5 80
6 5
7 "MDIClient"
18 0
11 00000684
6 4
8 3
0 284 "user,GetClientRect,HHN" "{3}" &1
10 00000742
0 284 "user,GetWindow,HHH" "{4}" 2
13
8 4
10 00000519
0 284 "user,GetWindow,HHH" "{3}" 5
13
8 4
7 ""
8 5
5 0
8 6
6 4
11 00001063
0 284 "user,GetClassName,HHCH" "{4}" &5 80
6 5
7 "MDICHILD"
18 0
11 00001005
0 284 "user,isiconic,HA" "{4}"
13
1 3
11 00001005
6 6
5 1
3 0
8 6
0 1041 &2 "{6}" "{4}"
0 284 "user,GetWindow,HHH" "{4}" 2
13
8 4
10 00000808
6 6
5 1
18 5
11 00001104
5 0
15
9
0 1050
13
6 6
18 3
11 00001173
5 4
5 4
22 1
5 72
3 1
23 1
5 4
22 1
6 6
4 1
8 7
0 279 1
13
0 1031 [X]
5 1
8 8
6 6
6 8
18 2
12 00001309
10 00001424
5 1
6 8
3 0
8 8
10 00001234
6 8
22 2
6 7
6 8
5 1
3 1
4 0
5 3
22 1
0 284 "User,MoveWindow,HHHHHHA" [X] 0 [X] [X] "{7}" 1
10 00001276
6 0
15
9
00003361