📄 getboundsrect.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>GetBoundsRect</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">GetBoundsRect</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 GetBoundsRect Lib "gdi32" Alias
"GetBoundsRect" (ByVal hdc As Long, lprcBounds As RECT, ByVal flags As Long) As
Long</td>
</tr>
<tr>
<td width="100%" colspan="2">说明</td>
</tr>
<tr>
<td width="100%" colspan="2">获取指定设备场景的边界矩形。每个设备场景都有一个边界矩形,程序员可用它来堆放表示当前图象边界的信息</td>
</tr>
<tr>
<td width="100%" colspan="2">返回值</td>
</tr>
<tr>
<td width="100%" colspan="2">Long,出错为0,否则为下列常数之一:<br>
DCB_SET:边界矩形非空<br>
DCB_RESET:边界矩形为空<br>
DCB_ENABLE:边界矩形正被堆放<br>
DCB_DISABLE:边界矩形当前没有被堆放</td>
</tr>
<tr>
<td width="100%" colspan="2">参数表</td>
</tr>
<tr>
<td width="25%">参数</td>
<td width="75%">类型及说明</td>
</tr>
<tr>
<td width="25%">hdc</td>
<td width="75%">Long,边界矩形对应的设备场景</td>
</tr>
<tr>
<td width="25%">lprcBounds</td>
<td width="75%"><a href="RECT.htm" tppabs="http://personal.hb.cninfo.net/~vbapi/RECT.htm">RECT</a>,装载设备场景hdc的当前边界矩形</td>
</tr>
<tr>
<td width="25%">flags</td>
<td width="75%">Long,可设为常数DCB_RESET以清除边界矩形,否则设为零</td>
</tr>
<tr>
<td width="100%" colspan="2">注解</td>
</tr>
<tr>
<td width="100%" colspan="2"><p align="left">详情参考<a href="SetBoundsRect.htm" tppabs="http://personal.hb.cninfo.net/~vbapi/SetBoundsRect.htm">SetBoundsRect</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">Top</td>
</tr>
</table>
</center></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -