📄 group__misc__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: Miscellaneous functions</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>Miscellaneous functions<br><small>[<a class="el" href="group__global__fns.htm">Global/general functions</a>, <a class="el" href="group__lite__fns.htm">MiniGUI-Processes specific functions</a>]</small></h1><h2>Defines</h2><ul><li>#define <a class="el" href="group__misc__fns.htm#ga19">Draw3DControlFrame</a>(hdc, l, t, r, b, fillc, updown)<dl class="el"><dd class="mdescRight">Back compatibility definitions. <a href="#ga19"></a><br></dl><li>#define <a class="el" href="group__misc__fns.htm#ga20">DrawFlatControlFrame</a>(hdc, x0, y0, x1, y1, fillc, updown)<dl class="el"><dd class="mdescRight">Back compatibility definitions. <a href="#ga20"></a><br></dl><li>#define <a class="el" href="group__misc__fns.htm#ga21">Draw3DUpThickFrame</a>(hdc, l, t, r, b, fillc) Draw3DThickFrameEx(hdc, HWND_DESKTOP, l, t, r, b, DF_3DBOX_NORMAL | ((fillc)?DF_3DBOX_FILL:0), fillc)<dl class="el"><dd class="mdescRight">Back compatibility definitions. <a href="#ga21"></a><br></dl><li>#define <a class="el" href="group__misc__fns.htm#ga22">Draw3DDownThickFrame</a>(hdc, l, t, r, b, fillc) Draw3DThickFrameEx(hdc, HWND_DESKTOP, l, t, r, b, DF_3DBOX_PRESSED | ((fillc)?DF_3DBOX_FILL:0), fillc)<dl class="el"><dd class="mdescRight">Back compatibility definitions. <a href="#ga22"></a><br></dl><li>#define <a class="el" href="group__misc__fns.htm#ga23">Draw3DUpFrame</a> Draw3DUpThickFrame<li>#define <a class="el" href="group__misc__fns.htm#ga24">Draw3DDownFrame</a> Draw3DDownThickFrame<li>#define <a class="el" href="group__misc__fns.htm#ga25">Draw3DUpThinFrame</a>(hdc, l, t, r, b, fillc) Draw3DThinFrameEx(hdc, HWND_DESKTOP, l, t, r, b, DF_3DBOX_NORMAL | ((fillc)?DF_3DBOX_FILL:0), fillc)<dl class="el"><dd class="mdescRight">Back compatibility definitions. <a href="#ga25"></a><br></dl><li>#define <a class="el" href="group__misc__fns.htm#ga26">Draw3DDownThinFrame</a>(hdc, l, t, r, b, fillc) Draw3DThinFrameEx(hdc, HWND_DESKTOP, l, t, r, b, DF_3DBOX_PRESSED | ((fillc)?DF_3DBOX_FILL:0), fillc)<li>#define <a class="el" href="group__misc__fns.htm#ga27">Draw3DBorder</a>(hdc, l, t, r, b) Draw3DBorderEx(hdc, HWND_DESKTOP, l, t, r, b)<dl class="el"><dd class="mdescRight">Back compatibility definitions. <a href="#ga27"></a><br></dl><li>#define <a class="el" href="group__misc__fns.htm#ga28">NotifyParent</a>(hwnd, id, code) NotifyParentEx(hwnd, id, code, 0)<dl class="el"><dd class="mdescRight">Sends a notification message to the parent, but without additional data. <a href="#ga28"></a><br></dl><li>#define <a class="el" href="group__misc__fns.htm#ga29">Beep</a> Ping<dl class="el"><dd class="mdescRight">Alias of Ping. <a href="#ga29"></a><br></dl></ul><h2>Typedefs</h2><ul><li>typedef int(* <a class="el" href="group__misc__fns.htm#ga0">STRCMP</a> )(const char *s1, const char *s2, size_t n)<dl class="el"><dd class="mdescRight">Type of general strncmp function. <a href="#ga0"></a><br></dl></ul><h2>Enumerations</h2><ul><li>enum <a class="el" href="group__misc__fns.htm#ga30">SBPolicyType</a> { <a class="el" href="group__misc__fns.htm#gga30a16">SB_POLICY_ALWAYS</a>, <a class="el" href="group__misc__fns.htm#gga30a17">SB_POLICY_AUTOMATIC</a>, <a class="el" href="group__misc__fns.htm#gga30a18">SB_POLICY_NEVER</a> }<dl class="el"><dd class="mdescRight">Scroll bar display policies in scrolled window. <a href="group__misc__fns.htm#ga30">More...</a><br></dl></ul><h2>Functions</h2><ul><li>MG_EXPORT void GUIAPI <a class="el" href="group__misc__fns.htm#ga2">DrawBoxFromBitmap</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__RECT.htm">RECT</a> *box, const <a class="el" href="struct__BITMAP.htm">BITMAP</a> *bmp, <a class="el" href="group__simple__types.htm#ga0">BOOL</a> h_v, <a class="el" href="group__simple__types.htm#ga0">BOOL</a> do_clip)<dl class="el"><dd class="mdescRight">Draws a box from bitmap. <a href="#ga2"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__misc__fns.htm#ga3">Draw3DControlFrameEx</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="group__handles.htm#ga1">HWND</a> hwnd, int x0, int y0, int x1, int y1, <a class="el" href="group__win32__types.htm#ga4">DWORD</a> flags, <a class="el" href="group__gdi__types.htm#ga8">gal_pixel</a> fillc)<dl class="el"><dd class="mdescRight">Draws a 3D style frame control. <a href="#ga3"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__misc__fns.htm#ga4">DrawFlatControlFrameEx</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="group__handles.htm#ga1">HWND</a> hwnd, int x0, int y0, int x1, int y1, int corner, <a class="el" href="group__win32__types.htm#ga4">DWORD</a> flags, <a class="el" href="group__gdi__types.htm#ga8">gal_pixel</a> fillc)<dl class="el"><dd class="mdescRight">Draws a flat frame control with triangle corner. <a href="#ga4"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__misc__fns.htm#ga5">Draw3DThickFrameEx</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="group__handles.htm#ga1">HWND</a> hwnd, int l, int t, int r, int b, <a class="el" href="group__win32__types.htm#ga4">DWORD</a> flags, <a class="el" href="group__gdi__types.htm#ga8">gal_pixel</a> fillc)<dl class="el"><dd class="mdescRight">Draws a thick 3D frame. <a href="#ga5"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__misc__fns.htm#ga6">Draw3DThinFrameEx</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="group__handles.htm#ga1">HWND</a> hwnd, int l, int t, int r, int b, <a class="el" href="group__win32__types.htm#ga4">DWORD</a> flags, <a class="el" href="group__gdi__types.htm#ga8">gal_pixel</a> fillc)<dl class="el"><dd class="mdescRight">Draws a thin 3D frame. <a href="#ga6"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__misc__fns.htm#ga7">Draw3DBorderEx</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="group__handles.htm#ga1">HWND</a> hwnd, int l, int t, int r, int b)<dl class="el"><dd class="mdescRight">Draws a 3D rectangle border. <a href="#ga7"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__misc__fns.htm#ga8">DisabledTextOutEx</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="group__handles.htm#ga1">HWND</a> hwnd, int x, int y, const char *szText)<dl class="el"><dd class="mdescRight">Outputs disabled (grayed) text. <a href="#ga8"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__misc__fns.htm#ga9">NotifyParentEx</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hwnd, int id, int code, <a class="el" href="group__win32__types.htm#ga4">DWORD</a> add_data)<dl class="el"><dd class="mdescRight">Sends a notification message to the parent. <a href="#ga9"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__misc__fns.htm#ga11">Ping</a> (void)<dl class="el"><dd class="mdescRight">Makes a beep sound. <a href="#ga11"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__misc__fns.htm#ga12">Tone</a> (int frequency_hz, int duration_ms)<dl class="el"><dd class="mdescRight">Makes a tone. <a href="#ga12"></a><br></dl><li>MG_EXPORT void *GUIAPI <a class="el" href="group__misc__fns.htm#ga13">GetOriginalTermIO</a> (void)<dl class="el"><dd class="mdescRight">Gets <em>termios</em> structure of the original terminal before initializing MiniGUI. <a href="#ga13"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga29" doxytag="minigui.h::Beep"></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 Beep Ping </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Alias of Ping. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__misc__fns.htm#ga11">Ping</a> </dd></dl><p>Definition at line <a class="el" href="minigui_8h-source.htm#l02285">2285</a> of file <a class="el" href="minigui_8h-source.htm">minigui.h</a>. </td> </tr></table><a class="anchor" name="ga27" doxytag="ctrlhelper.h::Draw3DBorder"></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 Draw3DBorder </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">hdc, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>l, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>t, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>r, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>b </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> Draw3DBorderEx(hdc, HWND_DESKTOP, l, t, r, b)</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Back compatibility definitions. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__misc__fns.htm#ga7">Draw3DBorderEx</a> </dd></dl><p>Definition at line <a class="el" href="ctrlhelper_8h-source.htm#l00268">268</a> of file <a class="el" href="ctrlhelper_8h-source.htm">ctrlhelper.h</a>. </td> </tr></table><a class="anchor" name="ga19" doxytag="ctrlhelper.h::Draw3DControlFrame"></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 Draw3DControlFrame </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">hdc, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>l, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>t, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>r, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>b, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>fillc, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>updown </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><b>Value:</b><div class="fragment"><pre class="fragment"><a class="code" href="group__misc__fns.htm#ga3">Draw3DControlFrameEx</a>(hdc, <a class="code" href="group__window__create__fns.htm#ga15">HWND_DESKTOP</a>, l, t, r, b, \ (updown?DF_3DBOX_NORMAL:DF_3DBOX_PRESSED) | ((fillc)?DF_3DBOX_FILL:0), fillc)</pre></div>Back compatibility definitions. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__misc__fns.htm#ga3">Draw3DControlFrameEx</a> </dd></dl><p>Definition at line <a class="el" href="ctrlhelper_8h-source.htm#l00118">118</a> of file <a class="el" href="ctrlhelper_8h-source.htm">ctrlhelper.h</a>. </td> </tr></table><a class="anchor" name="ga24" doxytag="ctrlhelper.h::Draw3DDownFrame"></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 Draw3DDownFrame Draw3DDownThickFrame </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__misc__fns.htm#ga21">Draw3DUpThickFrame</a> </dd></dl><p>Definition at line <a class="el" href="ctrlhelper_8h-source.htm#l00204">204</a> of file <a class="el" href="ctrlhelper_8h-source.htm">ctrlhelper.h</a>. </td> </tr></table><a class="anchor" name="ga22" doxytag="ctrlhelper.h::Draw3DDownThickFrame"></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 Draw3DDownThickFrame </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">hdc, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>l, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>t, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>r, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>b, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>fillc </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> Draw3DThickFrameEx(hdc, HWND_DESKTOP, l, t, r, b, DF_3DBOX_PRESSED | ((fillc)?DF_3DBOX_FILL:0), fillc)</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Back compatibility definitions. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__misc__fns.htm#ga5">Draw3DThickFrameEx</a> </dd></dl><p>Definition at line <a class="el" href="ctrlhelper_8h-source.htm#l00191">191</a> of file <a class="el" href="ctrlhelper_8h-source.htm">ctrlhelper.h</a>. </td> </tr></table><a class="anchor" name="ga26" doxytag="ctrlhelper.h::Draw3DDownThinFrame"></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 Draw3DDownThinFrame </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">hdc, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>l, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>t, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>r, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>b, <tr> <td class="md" nowrap align="right"></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -