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

📄 fcreg.htm

📁 一个国人自己实现图像库的程序(有参考价值)
💻 HTM
字号:
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=GB2312">
<title>FCReg</title>
</head>

<body bgcolor="#ffffe7" lang=ZH-CN style='tab-interval:21.0pt'>
<h2 align="center"><b><font color="#FF0000">FCReg类</font></b></h2>
<table width="85%" border="1" bordercolor="#3399FF" align="center" cellpadding="0" bgcolor="#D0FFE0">
  <tr> 
    <td rowspan="2">文件位置 :</td>
    <td width="85%"><font color="#FF0000">\FLib\Include\Reg.h</font></td>
  </tr>
  <tr> 
    <td width="85%"><font color="#FF0000">-------------------</font></td>
  </tr>
  <tr> 
    <td>使用方法 :</td>
    <td width="85%" height="8"><font color="#FF0000">#include &quot;fool.h&quot;</font></td>
  </tr>
  <tr> 
    <td>说明 :</td>
    <td width="85%" height="9"><font color="#FF0000">本类不区分大小写。</font></td>
  </tr>
</table>
<h2><font color="#FF0000"><b>成员函数(Member Functions):</b></font></h2>
<table width="85%" border="1" bordercolor="#3399FF" align="center" cellpadding="0" bgcolor="#CCFFFF">
  <tr> 
    <td width="15%">函数原型:</td>
    <td width="85%"><font color="#FF0000"> BOOL OpenKey (HKEY  hPreDefinedKey,<br>
              PCTSTR szSubKey)</font></td>
  </tr>
  <tr> 
    <td width="15%">参数:</td>
    <td width="85%"> 
      <p><font color="#000000">hPreDefinedKey :预定义的根键值。<br>
                 HKEY_CLASSES_ROOT<br>
                </font> <font color="#000000"> HKEY_CURRENT_CONFIG<br>
                </font> <font color="#000000"> HKEY_CURRENT_USER<br>
                </font> <font color="#000000"> HKEY_LOCAL_MACHINE<br>
                </font> <font color="#000000"> HKEY_USERS<br>
                </font> <font color="#000000"> Windows NT/2000/XP :HKEY_PERFORMANCE_DATA 
        <br>
                </font> <font color="#000000"> Windows 95/98/Me :HKEY_DYN_DATA 
        <br>
        <br>
        szSubKey :子键值。</font></p>
    </td>
  </tr>
  <tr> 
    <td width="15%">返回值:</td>
    <td width="85%">&nbsp;</td>
  </tr>
  <tr> 
    <td width="15%">说明:</td>
    <td width="85%">要打开根键则szSubKey = NULL。<br>
      <br>
      要打开的子键值不存在,则返回FALSE,并不自己创建子键。<br>
      <br>
      例 :MyReg.OpenKey (HKEY_LOCAL_MACHINE, &quot;SOFTWARE\\ODBC&quot;) ;</td>
  </tr>
</table>
<br>
<br>
<table width="85%" border="1" bordercolor="#3399FF" align="center" cellpadding="0" bgcolor="#CCFFFF">
  <tr> 
    <td colspan="2" height="7"> 
      <p align="center"><b><font color="#FF0000">创建子键</font></b></p>
    </td>
  </tr>
  <tr> 
    <td width="50%" height="8"><font color="#FF0000">BOOL CreateKey (PCTSTR szSubKey)</font></td>
    <td width="50%" height="8">&nbsp;</td>
  </tr>
  <tr> 
    <td width="50%"><font color="#FF0000"> BOOL CreateKeyAndAttach (PCTSTR szSubKey)</font></td>
    <td width="50%">连接到新创建的子键。</td>
  </tr>
</table>
<br>
<br>
<table width="85%" border="1" bordercolor="#3399FF" align="center" cellpadding="0" bgcolor="#CCFFFF">
  <tr> 
    <td colspan="2"> 
      <p align="center"><b><font color="#FF0000">键值操作</font></b></p>
    </td>
  </tr>
  <tr> 
    <td width="50%"><font color="#FF0000">BOOL SetValue (PCTSTR szValueName, DWORD 
      dwData)</font></td>
    <td rowspan="3">键值不存在则创建,存在则覆盖。</td>
  </tr>
  <tr> 
    <td width="50%"><font color="#FF0000"> BOOL SetValue (PCTSTR szValueName, 
      PCTSTR String)</font></td>
  </tr>
  <tr> 
    <td width="50%"><font color="#FF0000">BOOL SetValue (PCTSTR szValueName, BYTE 
      * pBinary,         DWORD dwCount)</font></td>
  </tr>
  <tr> 
    <td width="50%">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td width="50%"><font color="#FF0000"> BOOL QueryValueSize (PCTSTR szValueName, 
      <br>
                 DWORD * dwSize)</font></td>
    <td rowspan="2">字符串的长度包括 NULL 字符。</td>
  </tr>
  <tr> 
    <td width="50%"><font color="#FF0000"> BOOL QueryValueType (PCTSTR szValueName,<br>
                 DWORD * dwType)</font></td>
  </tr>
  <tr> 
    <td width="50%">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td width="50%"><font color="#FF0000">BOOL QueryValue (PCTSTR szValueName,<br>
               DWORD * pDword)</font></td>
    <td rowspan="3">dwCount :返回写入pBinary中的字节数。</td>
  </tr>
  <tr> 
    <td width="50%"><font color="#FF0000"> BOOL QueryValue (PCTSTR szValueName,<br>
               TCHAR * pString)</font></td>
  </tr>
  <tr> 
    <td width="50%"><font color="#FF0000"> BOOL QueryValue (PCTSTR szValueName,<br>
               BYTE  * pBinary,<br>
               DWORD * dwCount)</font></td>
  </tr>
</table>
<br>
<br>
<table width="85%" border="1" bordercolor="#3399FF" align="center" cellpadding="0" bgcolor="#CCFFFF">
  <tr> 
    <td colspan="2"> 
      <p align="center"><b><font color="#FF0000">枚举操作</font></b></p>
    </td>
  </tr>
  <tr> 
    <td width="50%"><font color="#FF0000">BOOL EnumRegKey (TCHAR * szNameBuffer,<br>
               bool bReset = false)</font></td>
    <td rowspan="2">bReset = true则重新开始枚举。</td>
  </tr>
  <tr> 
    <td width="50%"><font color="#FF0000"> BOOL EnumRegValue (TCHAR * szNameBuffer,<br>
                bool bReset = false)</font></td>
  </tr>
</table>
<br>
<br>
<table width="85%" border="1" bordercolor="#3399FF" align="center" cellpadding="0" bgcolor="#CCFFFF">
  <tr> 
    <td colspan="2"> 
      <p align="center"><b><font color="#FF0000">杂项</font></b></p>
    </td>
  </tr>
  <tr> 
    <td width="50%"><font color="#FF0000">void FlushReg ( )</font></td>
    <td rowspan="4">&nbsp;</td>
  </tr>
  <tr> 
    <td width="50%"><font color="#FF0000"> BOOL DeleteSubKey (PCTSTR szSubKey)</font></td>
  </tr>
  <tr> 
    <td width="50%"><font color="#FF0000">BOOL DeleteValue (PCTSTR szValueName)</font></td>
  </tr>
  <tr> 
    <td width="50%"><font color="#FF0000">void CloseKey ( )</font></td>
  </tr>
</table>
<br>
<br>
<h2 align="center"><img src="stripe.gif" width="94%" height="2"><br>
</h2>
<table align=center bgcolor=ghostwhite border=0 cellpadding=0 cellspacing=0 
width=650>
  <tbody> 
  <tr> 
    <td width="85%"> 
      <p align=center>版权所有 <br>
        (C)1999 - 2002 付黎<br>
        <a href="mailto:crazybit@263.net">给我发信</a>   <a 
      href="javascript:window.close()">关闭窗口</a> </p>
    </td>
  </tr>
  </tbody> 
</table>
<h2>&nbsp;</h2>
</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -