📄 group__class__fns.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>MiniGUI V1.6.10 API Reference: Window class operations</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.htm">Main Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical List</a> | <a class="qindex" href="annotated.htm">Data Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File List</a> | <a class="qindex" href="functions.htm">Data Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related Pages</a></div><h1>Window class operations<br><small>[<a class="el" href="group__window__create__fns.htm">Window creating/destroying</a>]</small></h1><h2>Data Structures</h2><ul><li>struct <a class="el" href="struct__WNDCLASS.htm">_WNDCLASS</a></ul><h2>Typedefs</h2><ul><li>typedef <a class="el" href="struct__WNDCLASS.htm">_WNDCLASS</a> <a class="el" href="group__class__fns.htm#ga0">WNDCLASS</a></ul><h2>Functions</h2><ul><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__class__fns.htm#ga2">RegisterWindowClass</a> (<a class="el" href="struct__WNDCLASS.htm">PWNDCLASS</a> pWndClass)<dl class="el"><dd class="mdescRight">Registers a window class. <a href="#ga2"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__class__fns.htm#ga3">UnregisterWindowClass</a> (const char *szClassName)<dl class="el"><dd class="mdescRight">Undoes the effect of <em>RegisterWindowClass</em>. <a href="#ga3"></a><br></dl><li>MG_EXPORT const char *GUIAPI <a class="el" href="group__class__fns.htm#ga4">GetClassName</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Retrieves the name of the class to which the specified window belongs. <a href="#ga4"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__class__fns.htm#ga5">GetWindowClassInfo</a> (<a class="el" href="struct__WNDCLASS.htm">PWNDCLASS</a> pWndClass)<dl class="el"><dd class="mdescRight">Retrieves the information of the specified window class. <a href="#ga5"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__class__fns.htm#ga6">SetWindowClassInfo</a> (const <a class="el" href="struct__WNDCLASS.htm">WNDCLASS</a> *pWndClass)<dl class="el"><dd class="mdescRight">Sets the information of the specified window class. <a href="#ga6"></a><br></dl></ul><hr><h2>Typedef Documentation</h2><a class="anchor" name="ga0" doxytag="window.h::WNDCLASS"></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">typedef struct <a class="el" href="struct__WNDCLASS.htm">_WNDCLASS</a> <a class="el" href="struct__WNDCLASS.htm">WNDCLASS</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Structure defines a window class </td> </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga4" doxytag="window.h::GetClassName"></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">const char *GUIAPI GetClassName </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a> </td> <td class="mdname1" valign="top" nowrap> <em>hWnd</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Retrieves the name of the class to which the specified window belongs. <p>This function retrieves the name of the class to which the specified window <em>hWnd</em> belongs.<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>hWnd</em> </td><td>The handle to the window.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The pointer to a const class name string, NULL 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><a class="anchor" name="ga5" doxytag="window.h::GetWindowClassInfo"></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 GetWindowClassInfo </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="struct__WNDCLASS.htm">PWNDCLASS</a> </td> <td class="mdname1" valign="top" nowrap> <em>pWndClass</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Retrieves the information of the specified window class. <p>This function retrives the information of a window class. The window class to be retrived is specified by <em>pWndClass->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> </td><td>The pointer to a WNDCLASS structure, which specifies the window class to be retrived via <em>spClassName</em> field, and returns the information through other fields.</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#ga6">SetWindowClassInfo</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga2" doxytag="window.h::RegisterWindowClass"></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 RegisterWindowClass </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="struct__WNDCLASS.htm">PWNDCLASS</a> </td> <td class="mdname1" valign="top" nowrap> <em>pWndClass</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Registers a window class. <p>This function registers a window class. Later on, you can create a window of the registered class.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -