📄 group__window__general__fns.htm
字号:
</table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE on success, otherwise FALSE.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__window__general__fns.htm#ga15">ExcludeWindowStyle</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga58" doxytag="window.h::GetActiveWindow"></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__handles.htm#ga1">HWND</a> GUIAPI GetActiveWindow </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </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 main window handle to the active main window. <p>This function retrives the main window handle to the active main window which receives the input.<p><dl compact><dt><b>Returns:</b></dt><dd>The handle to the active main window.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__window__general__fns.htm#ga59">SetActiveWindow</a>, <a class="el" href="group__window__general__fns.htm#ga55">GetFocusChild</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga60" doxytag="window.h::GetCapture"></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__handles.htm#ga1">HWND</a> GUIAPI GetCapture </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </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>Retrives the handle to the window (if any) that has captured the mouse. <p>This function retrieves the handle to the window (if any) that has captured the mouse. Only one window at a time can capture the mouse; this window receives mouse input whether or not the cursor is within its borders.<p><dl compact><dt><b>Returns:</b></dt><dd>The handle to the window that has captured the mouse, 0 for no window captures the mouse.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__window__general__fns.htm#ga61">SetCapture</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga6" doxytag="window.h::GetClientRect"></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 GetClientRect </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="mdname" nowrap> <em>hWnd</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="struct__RECT.htm">PRECT</a> </td> <td class="mdname" nowrap> <em>prc</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Retrives the client rectangle of a window. <p>This function retrives the coordinates of the client area of the window specified by <em>hWnd</em>. The client coordinates specify the upper-left and lower-right corners of the client area. Because client coordinates are relative to the upper-left corner of a window's client area, the coordinates of the upper-left corner are always (0,0).<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> <tr><td valign="top"></td><td valign="top"><em>prc</em> </td><td>The pointer to a RECT structure receives the client rectangle.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE on sucess, otherwise FALSE.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>Note that the coordinates of the upper-left corner are always zero.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__window__general__fns.htm#ga64">MoveWindow</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga50" doxytag="window.h::GetFirstHosted"></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__handles.htm#ga1">HWND</a> GUIAPI GetFirstHosted </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>hHosting</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>Retrives the first hosted main window of a main window. <p>This function retrives the first hosted main window of the specified main window <em>hMainWnd</em>.<p>For MiniGUI-Threads, HWND_DESKTOP has no any "hosted" window, so do not use this function for it.<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>hHosting</em> </td><td>The handle to the hosting main window.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The handle to the first hosted main window. If an invalid window handle is passed for <em>hHosting</em>, HWND_INVALID will be returned. If tihs main window do not have a hosted window, HWND_NULL will be returned.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__window__general__fns.htm#ga49">GetHosting</a>, <a class="el" href="group__window__general__fns.htm#ga51">GetNextHosted</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga55" doxytag="window.h::GetFocusChild"></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__handles.htm#ga1">HWND</a> GUIAPI GetFocusChild </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>hParent</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 handle to the window's active child that has the keyboard focus. <p>This function retrives the handle to the window's active child that has the keyboard focus.<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>hParent</em> </td><td>The handle to the parent window.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The handle to the active child.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__window__general__fns.htm#ga57">SetFocusChild</a>, SetNullFoucs </dd></dl> </td> </tr></table><a class="anchor" name="ga49" doxytag="window.h::GetHosting"></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__handles.htm#ga1">HWND</a> GUIAPI GetHosting </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>hMainWnd</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -