📄 ctrlhelper_8h-source.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: ctrlhelper.h Source File</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><div class="nav"><a class="el" href="dir_000003.htm">include</a> / <a class="el" href="dir_000004.htm">ctrl</a></div><h1>ctrlhelper.h</h1><a href="ctrlhelper_8h.htm">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 00019 <span class="comment">/*</span>00020 <span class="comment"> * $Id: ctrlhelper.h 7365 2007-08-16 05:22:17Z xgwang $</span>00021 <span class="comment"> *</span>00022 <span class="comment"> * MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks, </span>00023 <span class="comment"> * pSOS, ThreadX, NuCleus, OSE, and Win32.</span>00024 <span class="comment"> *</span>00025 <span class="comment"> * Copyright (C) 2002-2007 Feynman Software.</span>00026 <span class="comment"> * Copyright (C) 1999-2002 Wei Yongming.</span>00027 <span class="comment"> */</span>00028 00029 <span class="preprocessor">#ifndef _MGUI_CTRL_CTRLHELPER_H</span>00030 <span class="preprocessor"></span><span class="preprocessor">#define _MGUI_CTRL_CTRLHELPER_H</span>00031 <span class="preprocessor"></span> 00032 <span class="preprocessor">#ifdef __cplusplus</span>00033 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {00034 <span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span>00035 <a name="l00055"></a><a class="code" href="group__misc__fns.htm#ga30">00055</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>00056 {00060 <a class="code" href="group__misc__fns.htm#gga30a16">SB_POLICY_ALWAYS</a>,00064 <a class="code" href="group__misc__fns.htm#gga30a17">SB_POLICY_AUTOMATIC</a>,00067 <a class="code" href="group__misc__fns.htm#gga30a18">SB_POLICY_NEVER</a>00068 } <a class="code" href="group__misc__fns.htm#ga30">SBPolicyType</a>;00069 00070 <span class="comment">/* Internal use */</span>00071 <span class="keywordtype">int</span> EditOnEraseBackground (<a class="code" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="code" href="group__handles.htm#ga2">HDC</a> hdc, <span class="keyword">const</span> <a class="code" href="struct__RECT.htm">RECT</a>* pClipRect);00072 00083 MG_EXPORT <span class="keywordtype">void</span> GUIAPI <a class="code" href="group__misc__fns.htm#ga2">DrawBoxFromBitmap</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc, <span class="keyword">const</span> <a class="code" href="struct__RECT.htm">RECT</a>* box, <span class="keyword">const</span> <a class="code" href="struct__BITMAP.htm">BITMAP</a>* bmp, <a class="code" href="group__simple__types.htm#ga0">BOOL</a> h_v, <a class="code" href="group__simple__types.htm#ga0">BOOL</a> do_clip);00084 00085 <span class="preprocessor">#define DF_3DBOX_NORMAL 0x0000</span>00086 <span class="preprocessor"></span><span class="preprocessor">#define DF_3DBOX_PRESSED 0x0001</span>00087 <span class="preprocessor"></span><span class="preprocessor">#define DF_3DBOX_STATEMASK 0x000F</span>00088 <span class="preprocessor"></span><span class="preprocessor">#define DF_3DBOX_NOTFILL 0x0000</span>00089 <span class="preprocessor"></span><span class="preprocessor">#define DF_3DBOX_FILL 0x0010</span>00090 <span class="preprocessor"></span>00110 MG_EXPORT <span class="keywordtype">void</span> GUIAPI <a class="code" href="group__misc__fns.htm#ga3">Draw3DControlFrameEx</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc, <a class="code" href="group__handles.htm#ga1">HWND</a> hwnd, <span class="keywordtype">int</span> x0, <span class="keywordtype">int</span> y0, <span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, 00111 <a class="code" href="group__win32__types.htm#ga4">DWORD</a> flags, <a class="code" href="group__gdi__types.htm#ga8">gal_pixel</a> fillc);00112 <a name="l00118"></a><a class="code" href="group__misc__fns.htm#ga19">00118</a> <span class="preprocessor">#define Draw3DControlFrame(hdc, l, t, r, b, fillc, updown) \</span>00119 <span class="preprocessor"> Draw3DControlFrameEx(hdc, HWND_DESKTOP, l, t, r, b, \</span>00120 <span class="preprocessor"> (updown?DF_3DBOX_NORMAL:DF_3DBOX_PRESSED) | ((fillc)?DF_3DBOX_FILL:0), fillc)</span>00121 <span class="preprocessor"></span>00142 MG_EXPORT <span class="keywordtype">void</span> GUIAPI <a class="code" href="group__misc__fns.htm#ga4">DrawFlatControlFrameEx</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc, <a class="code" href="group__handles.htm#ga1">HWND</a> hwnd, <span class="keywordtype">int</span> x0, <span class="keywordtype">int</span> y0, <span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, 00143 <span class="keywordtype">int</span> corner, <a class="code" href="group__win32__types.htm#ga4">DWORD</a> flags, <a class="code" href="group__gdi__types.htm#ga8">gal_pixel</a> fillc);<a name="l00149"></a><a class="code" href="group__misc__fns.htm#ga20">00149</a> <span class="preprocessor">#define DrawFlatControlFrame(hdc, x0, y0, x1, y1, fillc, updown) \</span>00150 <span class="preprocessor"> DrawFlatControlFrameEx(hdc, HWND_DESKTOP, x0, y0, x1, y1, 3, \</span>00151 <span class="preprocessor"> (updown?DF_3DBOX_NORMAL:DF_3DBOX_PRESSED) | ((fillc)?DF_3DBOX_FILL:0), fillc)</span>00152 <span class="preprocessor"></span>00175 MG_EXPORT <span class="keywordtype">void</span> GUIAPI <a class="code" href="group__misc__fns.htm#ga5">Draw3DThickFrameEx</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc, <a class="code" href="group__handles.htm#ga1">HWND</a> hwnd,00176 <span class="keywordtype">int</span> l, <span class="keywordtype">int</span> t, <span class="keywordtype">int</span> r, <span class="keywordtype">int</span> b, <a class="code" href="group__win32__types.htm#ga4">DWORD</a> flags, <a class="code" href="group__gdi__types.htm#ga8">gal_pixel</a> fillc);00177 <a name="l00183"></a><a class="code" href="group__misc__fns.htm#ga21">00183</a> <span class="preprocessor">#define Draw3DUpThickFrame(hdc, l, t, r, b, fillc) \</span>00184 <span class="preprocessor"> Draw3DThickFrameEx(hdc, HWND_DESKTOP, l, t, r, b, DF_3DBOX_NORMAL | ((fillc)?DF_3DBOX_FILL:0), fillc)</span>00185 <span class="preprocessor"></span><a name="l00191"></a><a class="code" href="group__misc__fns.htm#ga22">00191</a> <span class="preprocessor">#define Draw3DDownThickFrame(hdc, l, t, r, b, fillc) \</span>00192 <span class="preprocessor"> Draw3DThickFrameEx(hdc, HWND_DESKTOP, l, t, r, b, DF_3DBOX_PRESSED | ((fillc)?DF_3DBOX_FILL:0), fillc)</span>00193 <span class="preprocessor"></span><a name="l00198"></a><a class="code" href="group__misc__fns.htm#ga23">00198</a> <span class="preprocessor">#define Draw3DUpFrame Draw3DUpThickFrame</span>00199 <span class="preprocessor"></span><a name="l00204"></a><a class="code" href="group__misc__fns.htm#ga24">00204</a> <span class="preprocessor">#define Draw3DDownFrame Draw3DDownThickFrame</span>00205 <span class="preprocessor"></span>00228 MG_EXPORT <span class="keywordtype">void</span> GUIAPI <a class="code" href="group__misc__fns.htm#ga6">Draw3DThinFrameEx</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc, <a class="code" href="group__handles.htm#ga1">HWND</a> hwnd,00229 <span class="keywordtype">int</span> l, <span class="keywordtype">int</span> t, <span class="keywordtype">int</span> r, <span class="keywordtype">int</span> b, <a class="code" href="group__win32__types.htm#ga4">DWORD</a> flags, <a class="code" href="group__gdi__types.htm#ga8">gal_pixel</a> fillc);00230 <a name="l00236"></a><a class="code" href="group__misc__fns.htm#ga25">00236</a> <span class="preprocessor">#define Draw3DUpThinFrame(hdc, l, t, r, b, fillc) \</span>00237 <span class="preprocessor"> Draw3DThinFrameEx(hdc, HWND_DESKTOP, l, t, r, b, DF_3DBOX_NORMAL | ((fillc)?DF_3DBOX_FILL:0), fillc)</span>00238 <span class="preprocessor"></span><a name="l00243"></a><a class="code" href="group__misc__fns.htm#ga26">00243</a> <span class="preprocessor">#define Draw3DDownThinFrame(hdc, l, t, r, b, fillc) \</span>00244 <span class="preprocessor"> Draw3DThinFrameEx(hdc, HWND_DESKTOP, l, t, r, b, DF_3DBOX_PRESSED | ((fillc)?DF_3DBOX_FILL:0), fillc)</span>00245 <span class="preprocessor"></span>00261 MG_EXPORT <span class="keywordtype">void</span> GUIAPI <a class="code" href="group__misc__fns.htm#ga7">Draw3DBorderEx</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc, <a class="code" href="group__handles.htm#ga1">HWND</a> hwnd, <span class="keywordtype">int</span> l, <span class="keywordtype">int</span> t, <span class="keywordtype">int</span> r, <span class="keywordtype">int</span> b);00262 <a name="l00268"></a><a class="code" href="group__misc__fns.htm#ga27">00268</a> <span class="preprocessor">#define Draw3DBorder(hdc, l, t, r, b) \</span>00269 <span class="preprocessor"> Draw3DBorderEx(hdc, HWND_DESKTOP, l, t, r, b)</span>00270 <span class="preprocessor"></span>00285 MG_EXPORT <span class="keywordtype">void</span> GUIAPI <a class="code" href="group__misc__fns.htm#ga8">DisabledTextOutEx</a> (<a class="code" href="group__handles.htm#ga2">HDC</a> hdc, <a class="code" href="group__handles.htm#ga1">HWND</a> hwnd, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keyword">const</span> <span class="keywordtype">char</span>* szText);00286 00310 MG_EXPORT <span class="keywordtype">void</span> GUIAPI <a class="code" href="group__misc__fns.htm#ga9">NotifyParentEx</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hwnd, <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keywordtype">int</span> code, <a class="code" href="group__win32__types.htm#ga4">DWORD</a> add_data);00311 <a name="l00326"></a><a class="code" href="group__misc__fns.htm#ga28">00326</a> <span class="preprocessor">#define NotifyParent(hwnd, id, code) \</span>00327 <span class="preprocessor"> NotifyParentEx(hwnd, id, code, 0)</span>00328 <span class="preprocessor"></span><a name="l00339"></a><a class="code" href="group__misc__fns.htm#ga0">00339</a> <span class="keyword">typedef</span> int (*<a class="code" href="group__misc__fns.htm#ga0">STRCMP</a>) (<span class="keyword">const</span> <span class="keywordtype">char</span>* s1, <span class="keyword">const</span> <span class="keywordtype">char</span>* s2, size_t n);00340 00341 MG_EXPORT <span class="keywordtype">int</span> GUIAPI DefaultPageProc (<a class="code" href="group__handles.htm#ga1">HWND</a> hWnd, <span class="keywordtype">int</span> message, <a class="code" href="group__win32__types.htm#ga8">WPARAM</a> wParam, <a class="code" href="group__win32__types.htm#ga9">LPARAM</a> lParam);00342 00349 <span class="preprocessor">#ifdef __cplusplus</span>00350 <span class="preprocessor"></span>}00351 <span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span>00352 00353 <span class="preprocessor">#endif </span><span class="comment">/* _MGUI_CTRL_CTRLHELPER_H */</span>00354 </pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:50 2007 for MiniGUI V1.6.10 API Reference by <a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -