📄 group__window__general__fns.htm
字号:
<td class="md" nowrap valign="top">#define SetFocus SetFocusChild </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__window__general__fns.htm#ga57">SetFocusChild</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l04074">4074</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga76" doxytag="window.h::SetForegroundWindow"></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">#define SetForegroundWindow SetActiveWindow </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__window__general__fns.htm#ga59">SetActiveWindow</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l04120">4120</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga30" doxytag="window.h::BeginPaint"></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#ga2">HDC</a> GUIAPI BeginPaint </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>Prepares a window for painting. <p>This function prepares the specified window <em>hWnd</em> for painting. This function is called in the handler of MSG_PAINT message normally. It returns a device context including the update region of the window. When you are done with the device context, you should call <em>EndPaint</em> to finish the painting of the window.<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 device context.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__window__general__fns.htm#ga31">EndPaint</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga34" doxytag="window.h::ClientHeightToWindowHeight"></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">int GUIAPI ClientHeightToWindowHeight </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__win32__types.htm#ga4">DWORD</a> </td> <td class="mdname" nowrap> <em>dwStyle</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>ch</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__simple__types.htm#ga0">BOOL</a> </td> <td class="mdname" nowrap> <em>hasMenu</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>Calculates main window height from the height of the client area. <p>This function calculates the main window height from the height of the client area.<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>dwStyle</em> </td><td>The style of the main window. </td></tr> <tr><td valign="top"></td><td valign="top"><em>ch</em> </td><td>The height of the client area. </td></tr> <tr><td valign="top"></td><td valign="top"><em>hasMenu</em> </td><td>Indicates whether the main window has menu. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The height of the main window.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__window__general__fns.htm#ga33">ClientWidthToWindowWidth</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga35" doxytag="window.h::ClientToScreen"></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">void GUIAPI ClientToScreen </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>int * </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int * </td> <td class="mdname" nowrap> <em>y</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>Converts the client coordinates of a point to screen coordinates. <p>This function converts the client coordinates of the specified point <em></em>(*x,*y) in the specified window <em>hWnd</em> to screen coordinates.<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>x</em> </td><td>The pointer to the x coordinate. </td></tr> <tr><td valign="top"></td><td valign="top"><em>y</em> </td><td>The pointer to the y coordinate.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__window__general__fns.htm#ga36">ScreenToClient</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga33" doxytag="window.h::ClientWidthToWindowWidth"></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">int GUIAPI ClientWidthToWindowWidth </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__win32__types.htm#ga4">DWORD</a> </td> <td class="mdname" nowrap> <em>dwStyle</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>cw</em></td> </tr> <tr> <td class="md"></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -