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

📄 createdibpatternbrush.htm

📁 WinAPI函数打包下载.rar
💻 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>CreateDIBPatternBrush</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">CreateDIBPatternBrush,CreateDIBPatternBrushPt</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="1" width="100%" bordercolorlight="#808080" cellspacing="0"
bordercolordark="#FFFFFF">
  <tr>
    <td width="102%" colspan="3">VB声明</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">Declare Function CreateDIBPatternBrush&amp; Lib 
    &quot;gdi32&quot; (ByVal hPackedDIB As Long, ByVal wUsage As Long)<br>
    Declare Function CreateDIBPatternBrushPt&amp; Lib &quot;gdi32&quot; (lpPackedDIB As Any, 
    ByVal wUsage As Long)</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">说明</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">用一幅与设备无关的位图创建一个刷子,以便指定刷子样式(图案)</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">返回值</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">Long,如执行成功,返回指向刷子的一个句柄。零表示失败</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">参数表</td>
  </tr>
  <tr>
    <td width="25%">参数</td>
    <td width="77%" colspan="2">类型及说明</td>
  </tr>
  <tr>
    <td width="25%">hPackedDIB,lpPackedDIB</td>
    <td width="77%" colspan="2">Long,hPackedDIB是指向一个内存块的全局内存句柄。那个内存块包含了一个BITMAPINFO结构,后面跟随一幅与设备无关的位图。lpPackedDIB是具有相同配置的一个内存块的地址。如指定了单色DIB,DIB颜色就会忽略,而换用文本和背景颜色</td>
  </tr>
  <tr>
    <td width="25%" rowspan="3">wUsage</td>
    <td width="77%" colspan="2">Long,下述常数之一:</td>
  </tr>
  <tr>
    <td width="37%">DIB_PAL_COLORS</td>
    <td width="38%">DIB颜色表,包含了当前逻辑调色板的索引</td>
  </tr>
  <tr>
    <td width="37%">DIB_RGB_COLORS</td>
    <td width="38%">DIB颜色表,包含了32位的RGB色值</td>
  </tr>
  <tr>
    <td width="102%" colspan="3">注解</td>
  </tr>
  <tr>
    <td width="102%" colspan="3"><p align="left">编制win32应用程序的时候,最好使用CreateDIBPatternBrushPt</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 + -