?? cascadewindows.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>CascadeWindows</title>
</head>
<body link="#FF0000" vlink="#FF0000" alink="#FF0000" bgcolor="#FFC8C8">
<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">說明</td>
</tr>
<tr>
<td width="100%" colspan="2">以層疊方式排列窗口(在vb里使用:位于頂部或被所有的窗口沒有問題。原文: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,排列成功的窗口數量,零表示失敗</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,指定一個父窗口;準備對它的子窗口進行排列。用GetDesktopWindow函數獲得頂級窗口的句柄</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">RECT</a>,指定一個矩形,矩形區域中的窗口才會層疊處理。可設為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,則表示排列所有的子窗口(原文: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文檔里,對這個函數的說明是不正確的。這兒的參數建立在實際的win32
C
頭文件基礎上。函數不能對諸如控件的子窗口產生——只對頂級窗口及MDI子有用。注意在MDI窗體的情況下,指定的父窗口應是MDIClient窗口的句柄,不應是MDI窗體本身的窗口句柄。可用api函數<a
href="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>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -