?? tilewindows.htm
字號:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<style><!--
body,table {font-family:"宋體"; font-size: 9pt; line-height:11pt;}
a {text-decoration:none} a:hover {color:red;text-decoration:underline}
--></style>
<title>TileWindows</title>
</head>
<body link="#FF0000" vlink="#FF0000" alink="#FF0000" bgcolor=#E2DEE9>
<div align="center"><center>
<table border="0" width="100%" height="22" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="16"><a name="TileWindows">TileWindows</a></td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="1" width="100%" bordercolorlight="#808080" cellspacing="0"
bordercolordark="#FFFFFF">
<tr>
<td width="100%" colspan="2">VB聲明</td>
</tr>
<tr>
<td width="100%" colspan="2">Declare Function TileWindows% Lib "user32" (ByVal
hwndParent As Long, ByVal wHow As Long, lpRect As RECT, ByVal cKids As Long, lpKids As
Long)<br>
Declare Function TileWindowsBynum% Lib "user32" Alias "TileWindows"
(ByVal hwndParent As Long, ByVal wHow As Long, ByVal lpRect As Long, ByVal cKids As Long,
ByVal lpKids As Long)</td>
</tr>
<tr>
<td width="100%" colspan="2">說明</td>
</tr>
<tr>
<td width="100%" colspan="2">以平鋪順序排列窗口(在vb里使用:對頂級窗口和MDI子窗口有效)</td>
</tr>
<tr>
<td width="100%" colspan="2">返回值</td>
</tr>
<tr>
<td width="100%" colspan="2">Integer,成功排列的窗口數量,零表示失敗</td>
</tr>
<tr>
<td width="100%" colspan="2">參數表</td>
</tr>
<tr>
<td width="25%">參數</td>
<td width="75%">類型及說明</td>
</tr>
<tr>
<td width="25%">hwndParent</td>
<td width="75%">Long,欲對其子窗口進行排列的父窗口。可用<a
href="GetDesktopWindow.htm" tppabs="http://www.gxbcts.com/airfly/api/papi/GetDesktopWindow.htm">GetDesktopWindow</a>函數獲得頂級窗口(桌面)的句柄</td>
</tr>
<tr>
<td width="25%">wHow</td>
<td width="75%">Long,MDITILE_HORIZONTAL或MDITILE_VERTICAL,用于設置平鋪方向(水平或垂直)</td>
</tr>
<tr>
<td width="25%">lpRect</td>
<td width="75%">Long,要在其中平鋪窗口的矩形,可設為NULL,表示用整個客戶區域</td>
</tr>
<tr>
<td width="25%">cKids</td>
<td width="75%">Long,lpKids數組中指定的子窗口數量</td>
</tr>
<tr>
<td width="25%">lpKids</td>
<td width="75%">Long,欲排列子窗口列表的第一個元素。如傳遞NULL(務必將參數定義成ByVal
Long),可排列所有子窗口</td>
</tr>
<tr>
<td width="100%" colspan="2">注解</td>
</tr>
<tr>
<td width="100%" colspan="2"><p align="left">這個函數不能對諸如控件的子窗口產生作用——只對對頂級窗口和MDI子窗口有用。在MDI窗口的情況下,指定的父窗口應是MDIClient窗口的句柄,不應是MDI窗體本身的窗口句柄。可用<a
href="GetParent.htm" tppabs="http://www.gxbcts.com/airfly/api/papi/GetParent.htm">GetParent</a>獲得正確的句柄</td>
</tr>
</table>
</center></div><div align="center"><center>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><p align="right"><a href="#TileWindows">Top</a></td>
</tr>
</table>
</center></div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -