<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
  <channel>
    <title>曲径通幽论坛 - Functions</title>
    <link>http://www.groad.net/bbs/forum.php?mod=forumdisplay&amp;fid=128</link>
    <description>Latest 20 threads of Functions</description>
    <copyright>Copyright(C) 曲径通幽论坛</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Fri, 10 Apr 2026 21:44:50 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://www.groad.net/bbs/static/image/common/logo_88_31.gif</url>
      <title>曲径通幽论坛</title>
      <link>http://www.groad.net/bbs/</link>
    </image>
    <item>
      <title>EnableWindow() -- 使能/禁能 鼠标或键盘向指定窗口或控件输入</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=6116</link>
      <description><![CDATA[EnableWindow() 函数原型如下：

该函数 使能/禁能 鼠标或键盘 向指定窗口或控件输入。当禁能时，窗口不能接收如鼠标点击或按键的输入；当使能时，窗口可以接收所有的输入。

第 1 个参数 hWnd 是要使能或禁能的窗口句柄。

第 2 个参数 bEnable 是个布尔型，为 TRUE 时 ...]]></description>
      <category>Functions</category>
      <author>beyes</author>
      <pubDate>Fri, 10 Feb 2012 10:40:03 +0000</pubDate>
    </item>
    <item>
      <title>MessageBeep() -- 播放声音</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=6113</link>
      <description><![CDATA[MessageBeep() 函数原型如下：

该函数播放一段声音，这个声音类型由参数指定，可以为如下值：

xFFFFFFFF SystemDefault （从机器的扬声器中发出蜂鸣声）
MB_ICONASTERISK SystemAsterisk （播放由 SystemAsterisk定 义的声音）
MB_ICONEXCLAMATION SystemExclamation  ...]]></description>
      <category>Functions</category>
      <author>beyes</author>
      <pubDate>Fri, 10 Feb 2012 05:16:53 +0000</pubDate>
    </item>
    <item>
      <title>GetDlgItem() -- 获取对话框中控件句柄</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=6111</link>
      <description><![CDATA[GetDlgItem() 原型为：

该函数用来获取对话框中的控件句柄。

第 1 个参数 hDlg 是包含控件的对话框句柄。

第 2 个参数 nIDDlgItem 是控件的资源标识。

比如下面的一个对话 ...]]></description>
      <category>Functions</category>
      <author>beyes</author>
      <pubDate>Thu, 09 Feb 2012 15:02:41 +0000</pubDate>
    </item>
    <item>
      <title>SetFocus() -- 对指定的窗口设置键盘焦点</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=6108</link>
      <description><![CDATA[SetFocus() 函数原型如下：

该函数对指定的窗口设置键盘焦点，它只有一个参数，这个参数就是接收键盘输入的窗口句柄，这个句柄常用 GetDlgItem() 函数来获得。当键盘焦点设置到窗口上后，那么所有的后续的键盘输入都会被定向到该窗口上来。

下面举一个简单的例子说明 ...]]></description>
      <category>Functions</category>
      <author>beyes</author>
      <pubDate>Thu, 09 Feb 2012 10:56:37 +0000</pubDate>
    </item>
    <item>
      <title>GetDlgItemText() -- 获取对话框中控件相关的标题或文本</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=6106</link>
      <description><![CDATA[GetDlgItemText() 原型如下：

该函数用来获取对话框中与控件相关的标题或文本。

第  ...]]></description>
      <category>Functions</category>
      <author>beyes</author>
      <pubDate>Thu, 09 Feb 2012 08:22:39 +0000</pubDate>
    </item>
    <item>
      <title>DialogBox() -- 从模板资源创建对话框</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=6104</link>
      <description><![CDATA[DialogBox() 函数原型如下：

该函数从模板资源创建一个对话框。函数在指定的回调函数(第 4 个参数)调用 EndDialo ...]]></description>
      <category>Functions</category>
      <author>beyes</author>
      <pubDate>Wed, 08 Feb 2012 16:53:57 +0000</pubDate>
    </item>
    <item>
      <title>SendDlgItemMessage() -- 给对话框中指定的控件发送消息</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=6094</link>
      <description><![CDATA[函数原型如下：


该函数用来给对话框中指定的空间发送一个消息。其中参数的含义为：

hDlg ：含有控件的对话框句柄。

nIDDlgItem ：接收发送消息的控件的标识。

Msg ：要发送的消息

wParam&#160;&#160;和 lParam 是附加信息。

下面是一个对话框：

在该对话框中的 ...]]></description>
      <category>Functions</category>
      <author>beyes</author>
      <pubDate>Tue, 07 Feb 2012 18:21:20 +0000</pubDate>
    </item>
    <item>
      <title>SendMessage() -- 发送消息</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=6088</link>
      <description><![CDATA[SendMessage() 函数原型如下：

该函数将指定的消息发送到一个或多个窗口。此函数为指定的窗口调用窗口程序，直到窗口程序处理完消息再返回(相当于 Linux 中的阻塞概念)。而函数PostMessage不同，将一个消息寄送到一个线程的消息队列后立即返回。

这里所说的调用窗口处 ...]]></description>
      <category>Functions</category>
      <author>beyes</author>
      <pubDate>Tue, 07 Feb 2012 07:54:15 +0000</pubDate>
    </item>
    <item>
      <title>DefWindowProc() -- 默认窗口处理函数</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=6080</link>
      <description><![CDATA[DefWindowProc() 函数原型如下：

通常窗口会收到许多消息，但是消息处理函数不一定要每个都需要处理，有些消息可能只需要直接让系统来 ...]]></description>
      <category>Functions</category>
      <author>beyes</author>
      <pubDate>Mon, 06 Feb 2012 18:15:40 +0000</pubDate>
    </item>
    <item>
      <title>DialogBoxParam() -- 对话框</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=6064</link>
      <description><![CDATA[DialogBoxParam() 原型如下：

对话框是比较常用的窗口，比如向用户发出警告信息 ...]]></description>
      <category>Functions</category>
      <author>beyes</author>
      <pubDate>Sat, 04 Feb 2012 09:10:17 +0000</pubDate>
    </item>
    <item>
      <title>GetSystemMetrics() -- 获取系统分辨率</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=6013</link>
      <description><![CDATA[GetSystemMetrics() 函数原型如下：

该函数用来获取系统相关分辨率，系统分辨率包括多种情形，比如屏幕分辨率，窗口边框的高宽度等。获取不同的分辨率由参数 nIndex 来指定。比如获取屏幕分辨率可如下使用：
[mw_shl_code=text,true]int _tmain(int argc, _TCHAR* argv ...]]></description>
      <category>Functions</category>
      <author>beyes</author>
      <pubDate>Sat, 28 Jan 2012 07:20:08 +0000</pubDate>
    </item>
    <item>
      <title>CreateWindow() -- 创建窗口</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=6008</link>
      <description><![CDATA[CreateWindow() 原型如下：
[mw_shl_code=cpp,true]HWND CreateWindow(          LPCTSTR lpClassName,
    LPCTSTR lpWindowName,
    DWORD dwStyle,
    int x,
    int y,
    int nWidth,
    int nHeight,
    HWND hWndParent,
    HMENU hMenu,
    HINSTANCE h ...]]></description>
      <category>Functions</category>
      <author>beyes</author>
      <pubDate>Thu, 26 Jan 2012 13:41:13 +0000</pubDate>
    </item>
    <item>
      <title>LoadIcon() --加载一个图标资源</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=6007</link>
      <description><![CDATA[LoadIcon() 函数原型如下：

该函数从与 hInstance 模块相关联的可执行文件中装入lpIconName指定的图标资源,仅当图标资源还没有被装入时该函数才执行装入操作,否 ...]]></description>
      <category>Functions</category>
      <author>beyes</author>
      <pubDate>Thu, 26 Jan 2012 08:03:18 +0000</pubDate>
    </item>
    <item>
      <title>LoadCursor() -- 加载一个光标资源</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=5994</link>
      <description><![CDATA[LoadCursor() 函数原型如下：

该函数用来加载一个光标资源，通常在一个窗口区域，标准的光标就是一个白色箭头，但是可以通过该函数设定其它的值，使光标 ...]]></description>
      <category>Functions</category>
      <author>beyes</author>
      <pubDate>Sat, 21 Jan 2012 09:29:11 +0000</pubDate>
    </item>
    <item>
      <title>GetStockObject() -- 获取常用钢笔,画刷,字体或调色板的句柄</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=5993</link>
      <description><![CDATA[函数原型如下：


函数只有一个参数，它指定了要获取的对象类型，这些对象的类型包括了画刷，钢笔，字体，调色板等，这些类型并不是单一的，还可以细分，比如画刷 ...]]></description>
      <category>Functions</category>
      <author>beyes</author>
      <pubDate>Sat, 21 Jan 2012 08:56:04 +0000</pubDate>
    </item>
    <item>
      <title>MessageBox() -- 显示对话框</title>
      <link>http://www.groad.net/bbs/forum.php?mod=viewthread&amp;tid=5912</link>
      <description><![CDATA[MessageBox() 函数原型如下：

第一个参数 hWnd 是消息框所属的窗口的句柄，可以设置为 NU ...]]></description>
      <category>Functions</category>
      <author>beyes</author>
      <pubDate>Tue, 10 Jan 2012 07:14:19 +0000</pubDate>
    </item>
  </channel>
</rss>