?? cascadewindows.htm
字號(hào):
<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>CascadeWindows</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="CascadeWindows,CascadeWindowsBynum">CascadeWindows,CascadeWindowsBynum</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 CascadeWindows% Lib "user32"
(ByVal hwndParent As Long, ByVal wHow As Long, lpRect As RECT, ByVal cKids As Long, lpKids
As Long)<br>
Declare Function CascadeWindowsBynum% Lib "user32" Alias
"CascadeWindows" (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">說(shuō)明</td>
</tr>
<tr>
<td width="100%" colspan="2">以層疊方式排列窗口(在vb里使用:位于頂部或被所有的窗口沒(méi)有問(wèn)題。原文:No
problem for top level windows or owned windows.)</td>
</tr>
<tr>
<td width="100%" colspan="2">返回值</td>
</tr>
<tr>
<td width="100%" colspan="2">Integer,排列成功的窗口數(shù)量,零表示失敗</td>
</tr>
<tr>
<td width="100%" colspan="2">參數(shù)表</td>
</tr>
<tr>
<td width="25%">參數(shù)</td>
<td width="75%">類(lèi)型及說(shuō)明</td>
</tr>
<tr>
<td width="25%">hwndParent</td>
<td width="75%">Long,指定一個(gè)父窗口;準(zhǔn)備對(duì)它的子窗口進(jìn)行排列。用GetDesktopWindow函數(shù)獲得頂級(jí)窗口的句柄</td>
</tr>
<tr>
<td width="25%">wHow</td>
<td width="75%">Long,MDITILE_SKIPDISABLED——不排列已被禁用的MDI子窗口</td>
</tr>
<tr>
<td width="25%">lpRect</td>
<td width="75%"><a href="RECT.htm" tppabs="http://www.gxbcts.com/airfly/api/papi/RECT.htm">RECT</a>,指定一個(gè)矩形,矩形區(qū)域中的窗口才會(huì)層疊處理。可設(shè)為NULL,表示使用整個(gè)客戶(hù)區(qū)</td>
</tr>
<tr>
<td width="25%">cKids</td>
<td width="75%">Long,在lpKids數(shù)組中指定的子窗口數(shù)量</td>
</tr>
<tr>
<td width="25%">lpKids</td>
<td width="75%">Long,子窗口列表中準(zhǔn)備排列的第一個(gè)元素。如傳遞NULL(注意將參數(shù)定義成ByVal)。Long,則表示排列所有的子窗口(原文:Long--First
element in list of child windows to arrange. Pass NULL (be sure to define parameter as
ByVal - Long, to arrange all child windows.)</td>
</tr>
<tr>
<td width="100%" colspan="2">注解</td>
</tr>
<tr>
<td width="100%" colspan="2"><p align="left">在正式的win32文檔里,對(duì)這個(gè)函數(shù)的說(shuō)明是不正確的。這兒的參數(shù)建立在實(shí)際的win32
C
頭文件基礎(chǔ)上。函數(shù)不能對(duì)諸如控件的子窗口產(chǎn)生——只對(duì)頂級(jí)窗口及MDI子有用。注意在MDI窗體的情況下,指定的父窗口應(yīng)是MDIClient窗口的句柄,不應(yīng)是MDI窗體本身的窗口句柄。可用api函數(shù)<a
href="GetParent.htm" tppabs="http://www.gxbcts.com/airfly/api/papi/GetParent.htm">GetParent</a>獲得正確的句柄</td>
</tr>
</table>
</center></div>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center"><p align="right"><a
href="#CascadeWindows,CascadeWindowsBynum">Top</a></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -