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

📄 group__class__fns.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 2 页
字号:
    <tr><td valign="top"></td><td valign="top"><em>pWndClass</em>&nbsp;</td><td>The pointer to a WNDCLASS structure which specifies the information of the window class.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE on success, FALSE on error.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__class__fns.htm#ga3">UnregisterWindowClass</a>, <a class="el" href="group__class__fns.htm#ga0">WNDCLASS</a></dd></dl>Example:<p><div class="fragment"><pre class="fragment"><span class="preprocessor">#define STEP_CTRL_NAME "mystep"</span><span class="preprocessor"></span><span class="preprocessor">#define MSG_SET_STEP_INFO   (MSG_USER + 1)</span><span class="preprocessor"></span><span class="preprocessor">#define MSG_SET_CURR_STEP   (MSG_USER + 2)</span><span class="preprocessor"></span><span class="keyword">static</span> <span class="keywordtype">int</span> StepControlProc (<a class="code" href="group__handles.htm#ga1">HWND</a> hwnd,                 <span class="keywordtype">int</span> message, <a class="code" href="group__win32__types.htm#ga8">WPARAM</a> wParam, <a class="code" href="group__win32__types.htm#ga9">LPARAM</a> lParam){    <a class="code" href="group__handles.htm#ga2">HDC</a> hdc;    HELPWININFO* info;        <span class="keywordflow">switch</span> (message) {    <span class="keywordflow">case</span> <a class="code" href="group__paint__msgs.htm#ga3">MSG_PAINT</a>:        hdc = <a class="code" href="group__window__general__fns.htm#ga30">BeginPaint</a> (hwnd);        <span class="comment">/* Get the step information. */</span>        info = (HELPWININFO*)<a class="code" href="group__window__general__fns.htm#ga21">GetWindowAdditionalData</a> (hwnd);        <span class="comment">/* Draw the step information. */</span>        ......        <a class="code" href="group__window__general__fns.htm#ga31">EndPaint</a> (hwnd, hdc);        <span class="keywordflow">break</span>;    <span class="comment">/* A message defined by the control, used to set the step information. */</span>    <span class="keywordflow">case</span> MSG_SET_STEP_INFO:        <a class="code" href="group__window__general__fns.htm#ga22">SetWindowAdditionalData</a> (hwnd, (<a class="code" href="group__win32__types.htm#ga4">DWORD</a>)lParam);        <a class="code" href="group__window__general__fns.htm#ga29">InvalidateRect</a> (hwnd, <a class="code" href="group__simple__types.htm#ga3">NULL</a>, <a class="code" href="group__simple__types.htm#ga2">TRUE</a>);        <span class="keywordflow">break</span>;    <span class="comment">/*</span><span class="comment">     * A message defined by the control, used to set the information</span><span class="comment">     * of the current step.</span><span class="comment">     */</span>    <span class="keywordflow">case</span> MSG_SET_CURR_STEP:        <a class="code" href="group__window__general__fns.htm#ga29">InvalidateRect</a> (hwnd, <a class="code" href="group__simple__types.htm#ga3">NULL</a>, <a class="code" href="group__simple__types.htm#ga1">FALSE</a>);        <span class="keywordflow">break</span>;    <span class="keywordflow">case</span> <a class="code" href="group__creation__msgs.htm#ga5">MSG_DESTROY</a>:        <span class="keywordflow">break</span>;    }    <span class="keywordflow">return</span> <a class="code" href="group__window__create__fns.htm#ga21">DefaultControlProc</a> (hwnd, message, wParam, lParam);}<span class="keyword">static</span> <a class="code" href="group__simple__types.htm#ga0">BOOL</a> RegisterStepControl (){    <span class="keywordtype">int</span> result;    <a class="code" href="struct__WNDCLASS.htm">WNDCLASS</a> StepClass;    StepClass.<a class="code" href="struct__WNDCLASS.htm#o0">spClassName</a> = STEP_CTRL_NAME;    StepClass.<a class="code" href="struct__WNDCLASS.htm#o2">dwStyle</a>     = 0;    StepClass.<a class="code" href="struct__WNDCLASS.htm#o4">hCursor</a>     = <a class="code" href="group__cursor__fns.htm#ga4">GetSystemCursor</a> (<a class="code" href="group__cursor__fns.htm#ga14">IDC_ARROW</a>);    StepClass.<a class="code" href="struct__WNDCLASS.htm#o5">iBkColor</a>    = <a class="code" href="group__color__vars.htm#ga36">COLOR_lightwhite</a>;    StepClass.<a class="code" href="struct__WNDCLASS.htm#o6">WinProc</a>     = StepControlProc;    <span class="keywordflow">return</span> <a class="code" href="group__class__fns.htm#ga2">RegisterWindowClass</a> (&amp;StepClass);}<span class="keyword">static</span> <span class="keywordtype">void</span> UnregisterStepControl (){    <a class="code" href="group__class__fns.htm#ga3">UnregisterWindowClass</a> (STEP_CTRL_NAME);}</pre></div>     </td>  </tr></table><a class="anchor" name="ga6" doxytag="window.h::SetWindowClassInfo"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"><a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI SetWindowClassInfo           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="struct__WNDCLASS.htm">WNDCLASS</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>pWndClass</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Sets the information of the specified window class. <p>This function sets the information of a window class. The window class to be operated is specified by <em>pWndClass-&gt;spClassName</em>.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>pWndClass</em>&nbsp;</td><td>The pointer to a WNDCLASS structure, which specifies the new information of the window class.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE on success, FALSE on error.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__class__fns.htm#ga5">GetWindowClassInfo</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga3" doxytag="window.h::UnregisterWindowClass"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"><a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI UnregisterWindowClass           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>szClassName</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Undoes the effect of <em>RegisterWindowClass</em>. <p>This function unregisters a registered window class specified by <em>szClassName</em>.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>szClassName</em>&nbsp;</td><td>The name of the class to be unregistered.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE on success, FALSE on error.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__class__fns.htm#ga2">RegisterWindowClass</a> </dd></dl>    </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:55 2007 for MiniGUI V1.6.10 API Reference by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>

⌨️ 快捷键说明

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