⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tilewindows.htm

📁 在Visual Basic中使用WINAPI的详细教程或说明
💻 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 &quot;user32&quot; (ByVal
    hwndParent As Long, ByVal wHow As Long, lpRect As RECT, ByVal cKids As Long, lpKids As
    Long)<br>
    Declare Function TileWindowsBynum% Lib &quot;user32&quot; Alias &quot;TileWindows&quot;
    (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 + -