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

📄 group__window__general__fns.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<!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: General window 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&nbsp;Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.htm">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File&nbsp;List</a> | <a class="qindex" href="functions.htm">Data&nbsp;Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related&nbsp;Pages</a></div><h1>General window operations<br><small>[<a class="el" href="group__window__create__fns.htm">Window creating/destroying</a>]</small></h1><h2>Defines</h2><ul><li>#define <a class="el" href="group__window__general__fns.htm#ga73">SetFocus</a>&nbsp;&nbsp;&nbsp;SetFocusChild<li>#define <a class="el" href="group__window__general__fns.htm#ga74">GetFocus</a>&nbsp;&nbsp;&nbsp;GetFocusChild<li>#define <a class="el" href="group__window__general__fns.htm#ga75">GetForegroundWindow</a>&nbsp;&nbsp;&nbsp;GetActiveWindow<li>#define <a class="el" href="group__window__general__fns.htm#ga76">SetForegroundWindow</a>&nbsp;&nbsp;&nbsp;SetActiveWindow<li>#define <a class="el" href="group__window__general__fns.htm#ga109">GetMainWinMetrics</a>(iItem)&nbsp;&nbsp;&nbsp;(WinMainMetrics[iItem])<dl class="el"><dd class="mdescRight">Get main window metrics.  <a href="#ga109"></a><br></dl><li>#define <a class="el" href="group__window__general__fns.htm#ga166">GetWindowElementColor</a>(iItem)&nbsp;&nbsp;&nbsp;(WinElementColors[iItem])<dl class="el"><dd class="mdescRight">Get window element color.  <a href="#ga166"></a><br></dl></ul><h2>Functions</h2><ul><li>MG_EXPORT void GUIAPI <a class="el" href="group__window__general__fns.htm#ga2">UpdateWindow</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__simple__types.htm#ga0">BOOL</a> bErase)<dl class="el"><dd class="mdescRight">Updates a window.  <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__window__general__fns.htm#ga3">ShowWindow</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int iCmdShow)<dl class="el"><dd class="mdescRight">Shows or hides a window.  <a href="#ga3"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga4">EnableWindow</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__simple__types.htm#ga0">BOOL</a> fEnable)<dl class="el"><dd class="mdescRight">Enables of disables a window.  <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__window__general__fns.htm#ga5">IsWindowEnabled</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Determines whether the specified window is enabled for mouse and keyboard input.  <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__window__general__fns.htm#ga6">GetClientRect</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="struct__RECT.htm">PRECT</a> prc)<dl class="el"><dd class="mdescRight">Retrives the client rectangle of a window.  <a href="#ga6"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__window__general__fns.htm#ga7">GetWindowBkColor</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Returns the current background color of a window.  <a href="#ga7"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__window__general__fns.htm#ga8">SetWindowBkColor</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int new_bkcolor)<dl class="el"><dd class="mdescRight">Sets the background color of a window.  <a href="#ga8"></a><br></dl><li>MG_EXPORT <a class="el" href="struct__LOGFONT.htm">PLOGFONT</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga9">GetWindowFont</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Retrives the default font of a window.  <a href="#ga9"></a><br></dl><li>MG_EXPORT <a class="el" href="struct__LOGFONT.htm">PLOGFONT</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga10">SetWindowFont</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="struct__LOGFONT.htm">PLOGFONT</a> pLogFont)<dl class="el"><dd class="mdescRight">Sets the default font of a window.  <a href="#ga10"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga4">HCURSOR</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga11">GetWindowCursor</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Retrives the current cursor of a window.  <a href="#ga11"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga4">HCURSOR</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga12">SetWindowCursor</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__handles.htm#ga4">HCURSOR</a> hNewCursor)<dl class="el"><dd class="mdescRight">Sets the current cursor of a window.  <a href="#ga12"></a><br></dl><li>MG_EXPORT <a class="el" href="group__win32__types.htm#ga4">DWORD</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga13">GetWindowStyle</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Retrives the style of a window.  <a href="#ga13"></a><br></dl><li>MG_EXPORT <a class="el" href="group__win32__types.htm#ga4">DWORD</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga14">GetWindowExStyle</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Retrives the extended style of a window.  <a href="#ga14"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga15">ExcludeWindowStyle</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__win32__types.htm#ga4">DWORD</a> dwStyle)<dl class="el"><dd class="mdescRight">Removes the specific style of a window.  <a href="#ga15"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga16">IncludeWindowStyle</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__win32__types.htm#ga4">DWORD</a> dwStyle)<dl class="el"><dd class="mdescRight">Includes the specific style of a window.  <a href="#ga16"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga17">ExcludeWindowExStyle</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__win32__types.htm#ga4">DWORD</a> dwStyle)<dl class="el"><dd class="mdescRight">Removes the specific extended style of a window.  <a href="#ga17"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga18">IncludeWindowExStyle</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__win32__types.htm#ga4">DWORD</a> dwStyle)<dl class="el"><dd class="mdescRight">Includes the specific extended style of a window.  <a href="#ga18"></a><br></dl><li>MG_EXPORT <a class="el" href="group__window__create__fns.htm#ga0">WNDPROC</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga19">GetWindowCallbackProc</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Retrives the callback procedure of a window.  <a href="#ga19"></a><br></dl><li>MG_EXPORT <a class="el" href="group__window__create__fns.htm#ga0">WNDPROC</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga20">SetWindowCallbackProc</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__window__create__fns.htm#ga0">WNDPROC</a> newProc)<dl class="el"><dd class="mdescRight">Sets the callback procedure of a window.  <a href="#ga20"></a><br></dl><li>MG_EXPORT <a class="el" href="group__win32__types.htm#ga4">DWORD</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga21">GetWindowAdditionalData</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Retrives the first additional data of a window.  <a href="#ga21"></a><br></dl><li>MG_EXPORT <a class="el" href="group__win32__types.htm#ga4">DWORD</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga22">SetWindowAdditionalData</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__win32__types.htm#ga4">DWORD</a> newData)<dl class="el"><dd class="mdescRight">Sets the first additional data of a window.  <a href="#ga22"></a><br></dl><li>MG_EXPORT <a class="el" href="group__win32__types.htm#ga4">DWORD</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga23">GetWindowAdditionalData2</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Retrives the second additional data of a window.  <a href="#ga23"></a><br></dl><li>MG_EXPORT <a class="el" href="group__win32__types.htm#ga4">DWORD</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga24">SetWindowAdditionalData2</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__win32__types.htm#ga4">DWORD</a> newData)<dl class="el"><dd class="mdescRight">Sets the second additional data of a window.  <a href="#ga24"></a><br></dl><li>MG_EXPORT <a class="el" href="group__win32__types.htm#ga4">DWORD</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga25">GetWindowClassAdditionalData</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Retrives the additional data of a control class.  <a href="#ga25"></a><br></dl><li>MG_EXPORT <a class="el" href="group__win32__types.htm#ga4">DWORD</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga26">SetWindowClassAdditionalData</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__win32__types.htm#ga4">DWORD</a> newData)<dl class="el"><dd class="mdescRight">Sets the additional data of a control class.  <a href="#ga26"></a><br></dl><li>MG_EXPORT const char *GUIAPI <a class="el" href="group__window__general__fns.htm#ga27">GetWindowCaption</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Retrives the caption of a window.  <a href="#ga27"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga28">SetWindowCaption</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, const char *spCaption)<dl class="el"><dd class="mdescRight">Sets the caption of a window.  <a href="#ga28"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga29">InvalidateRect</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, const <a class="el" href="struct__RECT.htm">RECT</a> *prc, <a class="el" href="group__simple__types.htm#ga0">BOOL</a> bEraseBkgnd)<dl class="el"><dd class="mdescRight">Makes a rectangle region in the client area of a window invalid.  <a href="#ga29"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga30">BeginPaint</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Prepares a window for painting.  <a href="#ga30"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__window__general__fns.htm#ga31">EndPaint</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__handles.htm#ga2">HDC</a> hdc)<dl class="el"><dd class="mdescRight">Marks the end of painting in a window.  <a href="#ga31"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga32">GetUpdateRect</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="struct__RECT.htm">RECT</a> *update_rect)<dl class="el"><dd class="mdescRight">Retrives the bounding box of the update region of a window.  <a href="#ga32"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__window__general__fns.htm#ga33">ClientWidthToWindowWidth</a> (<a class="el" href="group__win32__types.htm#ga4">DWORD</a> dwStyle, int cw)<dl class="el"><dd class="mdescRight">Calculates main window width from the width of the client area.  <a href="#ga33"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__window__general__fns.htm#ga34">ClientHeightToWindowHeight</a> (<a class="el" href="group__win32__types.htm#ga4">DWORD</a> dwStyle, int ch, <a class="el" href="group__simple__types.htm#ga0">BOOL</a> hasMenu)<dl class="el"><dd class="mdescRight">Calculates main window height from the height of the client area.  <a href="#ga34"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__window__general__fns.htm#ga35">ClientToScreen</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int *x, int *y)<dl class="el"><dd class="mdescRight">Converts the client coordinates of a point to screen coordinates.  <a href="#ga35"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__window__general__fns.htm#ga36">ScreenToClient</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int *x, int *y)<dl class="el"><dd class="mdescRight">Converts the screen coordinates of a point to client coordinates.  <a href="#ga36"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__window__general__fns.htm#ga37">WindowToScreen</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int *x, int *y)<dl class="el"><dd class="mdescRight">Converts the window coordinates of a point to screen coordinates.  <a href="#ga37"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__window__general__fns.htm#ga38">ScreenToWindow</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int *x, int *y)<dl class="el"><dd class="mdescRight">Converts the screen coordinates of a point to window coordinates.  <a href="#ga38"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga39">IsMainWindow</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Determines whether a window is a main window.  <a href="#ga39"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga40">IsControl</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Determines whether a window is a control.  <a href="#ga40"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga41">IsWindow</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Determines whether a window handle identifies an existing window.  <a href="#ga41"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga42">IsDialog</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Determines whether a window handle identifies a dialog window.  <a href="#ga42"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga1">HWND</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga43">GetParent</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Retrieves the handle to a child window's parent window.  <a href="#ga43"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga1">HWND</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga44">GetMainWindowHandle</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Retrives the handle to the main window contains a window.  <a href="#ga44"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga45">IsWindowVisible</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Retrieves the visibility state of the specified window.  <a href="#ga45"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga46">GetWindowRect</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="struct__RECT.htm">PRECT</a> prc)<dl class="el"><dd class="mdescRight">Retrives the dimensions of the bounding rectangle of a window.  <a href="#ga46"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga1">HWND</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga47">GetNextChild</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__handles.htm#ga1">HWND</a> hChild)<dl class="el"><dd class="mdescRight">Retrives the next control in a window.  <a href="#ga47"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga1">HWND</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga48">GetNextMainWindow</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hMainWnd)<dl class="el"><dd class="mdescRight">Retrives the next main window in the system according to the zorder.  <a href="#ga48"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga1">HWND</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga49">GetHosting</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hMainWnd)<dl class="el"><dd class="mdescRight">Retrives the hosting main window of a main window.  <a href="#ga49"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga1">HWND</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga50">GetFirstHosted</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hHosting)<dl class="el"><dd class="mdescRight">Retrives the first hosted main window of a main window.  <a href="#ga50"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga1">HWND</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga51">GetNextHosted</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hHosting, <a class="el" href="group__handles.htm#ga1">HWND</a> hHosted)<dl class="el"><dd class="mdescRight">Retrives the next hosted main window of a main window.  <a href="#ga51"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__window__general__fns.htm#ga52">GetWindowTextLength</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Retrieves the length of a window's text.  <a href="#ga52"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__window__general__fns.htm#ga53">GetWindowText</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, char *spString, int nMaxLen)<dl class="el"><dd class="mdescRight">Copies the text of a window's into a buffer.  <a href="#ga53"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga54">SetWindowText</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, const char *spString)<dl class="el"><dd class="mdescRight">Sets the text of a window.  <a href="#ga54"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga1">HWND</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga55">GetFocusChild</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hParent)<dl class="el"><dd class="mdescRight">Retrieves the handle to the window's active child that has the keyboard focus.  <a href="#ga55"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga1">HWND</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga56">SetNullFocus</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hParent)<dl class="el"><dd class="mdescRight">Cancels the current active child and set the focus child to be null.  <a href="#ga56"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga1">HWND</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga57">SetFocusChild</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Sets the active child of a window.  <a href="#ga57"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga1">HWND</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga58">GetActiveWindow</a> (void)<dl class="el"><dd class="mdescRight">Retrieves the main window handle to the active main window.  <a href="#ga58"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga1">HWND</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga59">SetActiveWindow</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hMainWnd)<dl class="el"><dd class="mdescRight">Sets a main window to be the active main window.  <a href="#ga59"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga1">HWND</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga60">GetCapture</a> (void)<dl class="el"><dd class="mdescRight">Retrives the handle to the window (if any) that has captured the mouse.  <a href="#ga60"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga1">HWND</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga61">SetCapture</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Sets the mouse capture to the specified window.  <a href="#ga61"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__window__general__fns.htm#ga62">ReleaseCapture</a> (void)<dl class="el"><dd class="mdescRight">Releases the mouse capture from a window and restores normal mouse input processing.  <a href="#ga62"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga1">HWND</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga63">GetWindowUnderCursor</a> (void)<dl class="el"><dd class="mdescRight">Retrives the handle to the window (if any) which is just beneath the mouse cursor.  <a href="#ga63"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga64">MoveWindow</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int x, int y, int w, int h, <a class="el" href="group__simple__types.htm#ga0">BOOL</a> fPaint)<dl class="el"><dd class="mdescRight">Changes the position and dimensions of a window.  <a href="#ga64"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__window__general__fns.htm#ga65">ScrollWindow</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, int iOffx, int iOffy, const <a class="el" href="struct__RECT.htm">RECT</a> *rc1, const <a class="el" href="struct__RECT.htm">RECT</a> *rc2)<dl class="el"><dd class="mdescRight">Scrolls the content of a window's client area.  <a href="#ga65"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__window__general__fns.htm#ga66">GetWindowElementMetricsEx</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hwnd, <a class="el" href="group__basic__types.htm#ga2">Uint16</a> item)<dl class="el"><dd class="mdescRight">Returns the metrics value of an element of a window.  <a href="#ga66"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__window__general__fns.htm#ga67">SetWindowElementMetricsEx</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hwnd, <a class="el" href="group__basic__types.htm#ga2">Uint16</a> item, int new_value)<dl class="el"><dd class="mdescRight">Sets the metrics value of an element of a window.  <a href="#ga67"></a><br></dl><li>MG_EXPORT <a class="el" href="group__gdi__types.htm#ga8">gal_pixel</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga68">GetWindowElementColorEx</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hwnd, <a class="el" href="group__basic__types.htm#ga2">Uint16</a> item)<dl class="el"><dd class="mdescRight">Returns the pixel value used to draw the specific window element of a window.  <a href="#ga68"></a><br></dl><li>MG_EXPORT <a class="el" href="group__gdi__types.htm#ga8">gal_pixel</a> GUIAPI <a class="el" href="group__window__general__fns.htm#ga69">SetWindowElementColorEx</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hwnd, <a class="el" href="group__basic__types.htm#ga2">Uint16</a> item, <a class="el" href="group__gdi__types.htm#ga8">gal_pixel</a> new_value)<dl class="el"><dd class="mdescRight">Sets the pixel value used to draw the specific window element of a window.  <a href="#ga69"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga74" doxytag="window.h::GetFocus"></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 GetFocus&nbsp;&nbsp;&nbsp;GetFocusChild          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__window__general__fns.htm#ga55">GetFocusChild</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l04080">4080</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga75" doxytag="window.h::GetForegroundWindow"></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 GetForegroundWindow&nbsp;&nbsp;&nbsp;GetActiveWindow          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__window__general__fns.htm#ga58">GetActiveWindow</a> </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l04114">4114</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga109" doxytag="window.h::GetMainWinMetrics"></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 GetMainWinMetrics          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">iItem&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;(WinMainMetrics[iItem])</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Get main window metrics. <p><p>Definition at line <a class="el" href="window_8h-source.htm#l04269">4269</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga166" doxytag="window.h::GetWindowElementColor"></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 GetWindowElementColor          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">iItem&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;(WinElementColors[iItem])</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Get window element color. <p><p>Definition at line <a class="el" href="window_8h-source.htm#l04450">4450</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.    </td>  </tr></table><a class="anchor" name="ga73" doxytag="window.h::SetFocus"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>

⌨️ 快捷键说明

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