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

📄 mywindows_8h-source.htm

📁 MINIGUI1.6开发API
💻 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: mywindows.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&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><div class="nav"><a class="el" href="dir_000000.htm">ext</a>&nbsp;/&nbsp;<a class="el" href="dir_000001.htm">include</a></div><h1>mywindows.h</h1><a href="mywindows_8h.htm">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 00022 <span class="comment">/*</span>00023 <span class="comment"> * $Id: mywindows.h 7486 2007-08-29 06:35:25Z xgwang $</span>00024 <span class="comment"> *</span>00025 <span class="comment"> *             MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks, </span>00026 <span class="comment"> *                     pSOS, ThreadX, NuCleus, OSE, and Win32.</span>00027 <span class="comment"> *</span>00028 <span class="comment"> *             Copyright (C) 2002-2007 Feynman Software.</span>00029 <span class="comment"> *             Copyright (C) 1998-2002 Wei Yongming.</span>00030 <span class="comment"> */</span>00031 00032 <span class="preprocessor">#ifndef _MGUI_MYWINDOWS_H</span>00033 <span class="preprocessor"></span><span class="preprocessor">    #define _MGUI_MYWINDOWS_H</span>00034 <span class="preprocessor"></span>00035 <span class="preprocessor">#ifdef __cplusplus</span>00036 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {00037 <span class="preprocessor">#endif  </span><span class="comment">/* __cplusplus */</span>00038 00077 MGEXT_EXPORT <span class="keywordtype">int</span> <a class="code" href="group__mywins__helpers.htm#ga4">myMessageBox</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hwnd, <a class="code" href="group__win32__types.htm#ga4">DWORD</a> dwStyle, <span class="keyword">const</span> <span class="keywordtype">char</span>* title,00078                 <span class="keyword">const</span> <span class="keywordtype">char</span>* text, ...);00079 00101 MGEXT_EXPORT <span class="keywordtype">int</span> <a class="code" href="group__mywins__helpers.htm#ga5">myWinMessage</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hwnd, <span class="keyword">const</span> <span class="keywordtype">char</span>* title, 00102                 <span class="keyword">const</span> <span class="keywordtype">char</span>* button1, <span class="keyword">const</span> <span class="keywordtype">char</span>* text, ...);00103 00129 MGEXT_EXPORT <span class="keywordtype">int</span> <a class="code" href="group__mywins__helpers.htm#ga6">myWinChoice</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hwnd, <span class="keyword">const</span> <span class="keywordtype">char</span>* title, 00130                 <span class="keyword">const</span> <span class="keywordtype">char</span>* button1, <span class="keyword">const</span> <span class="keywordtype">char</span>* button2, 00131                 <span class="keyword">const</span> <span class="keywordtype">char</span>* text, ...);00132 00159 MGEXT_EXPORT <span class="keywordtype">int</span> <a class="code" href="group__mywins__helpers.htm#ga7">myWinTernary</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hwnd, <span class="keyword">const</span> <span class="keywordtype">char</span>* title, 00160                 <span class="keyword">const</span> <span class="keywordtype">char</span>* button1, <span class="keyword">const</span> <span class="keywordtype">char</span>* button2, <span class="keyword">const</span> <span class="keywordtype">char</span>* button3,00161                 <span class="keyword">const</span> <span class="keywordtype">char</span>* text, ...);00162 00177 MGEXT_EXPORT <span class="keywordtype">void</span> <a class="code" href="group__mywins__helpers.htm#ga8">errorWindow</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hwnd, <span class="keyword">const</span> <span class="keywordtype">char</span>* str, <span class="keyword">const</span> <span class="keywordtype">char</span>* title);00178 00198 MGEXT_EXPORT <a class="code" href="group__handles.htm#ga1">HWND</a> <a class="code" href="group__mywins__helpers.htm#ga9">createStatusWin</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hParentWnd, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height, 00199                 <span class="keyword">const</span> <span class="keywordtype">char</span>* title, <span class="keyword">const</span> <span class="keywordtype">char</span>* text, ...);00200 00212 MGEXT_EXPORT <span class="keywordtype">void</span> <a class="code" href="group__mywins__helpers.htm#ga10">destroyStatusWin</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hwnd);00213 00237 MGEXT_EXPORT <a class="code" href="group__handles.htm#ga1">HWND</a> <a class="code" href="group__mywins__helpers.htm#ga11">createToolTipWin</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hParentWnd, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, 00238                 <span class="keywordtype">int</span> timeout_ms, <span class="keyword">const</span> <span class="keywordtype">char</span>* text, ...);00239 00258 MGEXT_EXPORT <span class="keywordtype">void</span> <a class="code" href="group__mywins__helpers.htm#ga12">resetToolTipWin</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hwnd, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, 00259                 <span class="keyword">const</span> <span class="keywordtype">char</span>* text, ...);00260 00272 MGEXT_EXPORT <span class="keywordtype">void</span> <a class="code" href="group__mywins__helpers.htm#ga13">destroyToolTipWin</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hwnd);00273 00274 <span class="preprocessor">#ifdef _CTRL_PROGRESSBAR</span>00275 <span class="preprocessor"></span>00297 MGEXT_EXPORT <a class="code" href="group__handles.htm#ga1">HWND</a> <a class="code" href="group__mywins__helpers.htm#ga14">createProgressWin</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hParentWnd, <span class="keyword">const</span> <span class="keywordtype">char</span>* title, 00298                 <span class="keyword">const</span> <span class="keywordtype">char</span>* label, <span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keywordtype">int</span> range);00299 00311 MGEXT_EXPORT <span class="keywordtype">void</span> <a class="code" href="group__mywins__helpers.htm#ga15">destroyProgressWin</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hwnd);00312 00313 <span class="preprocessor">#endif </span><span class="comment">/* _CTRL_PROGRESSBAR */</span>00314 <a name="l00319"></a><a class="code" href="struct__myWinButton.htm">00319</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__myWinButton.htm">_myWinButton</a>00320 {<a name="l00322"></a><a class="code" href="struct__myWinButton.htm#o0">00322</a>     <span class="keywordtype">char</span>*   <a class="code" href="struct__myWinButton.htm#o0">text</a>;<a name="l00324"></a><a class="code" href="struct__myWinButton.htm#o1">00324</a>     <span class="keywordtype">int</span>     <a class="code" href="struct__myWinButton.htm#o1">id</a>;<a name="l00326"></a><a class="code" href="struct__myWinButton.htm#o2">00326</a>     <a class="code" href="group__win32__types.htm#ga4">DWORD</a>   <a class="code" href="struct__myWinButton.htm#o2">flags</a>;00327 } <a class="code" href="struct__myWinButton.htm">myWINBUTTON</a>;00328 00329 <span class="comment">/* This is an internal structure. */</span>00330 <span class="keyword">typedef</span> <span class="keyword">struct </span>_myWinMenuItems00331 {00332     <span class="comment">/* The pointer to the array of the item strings. */</span>00333     <span class="keywordtype">char</span>**      items;00334     <span class="comment">/* The identifier of the listbox display the menu items. */</span>00335     <span class="keywordtype">int</span>         listboxid;00336     <span class="comment">/* The pointer to the array of the selection status of the items. */</span>00337     <span class="keywordtype">int</span>*        selected;00338     <span class="comment">/* The minimal button identifier. */</span>00339     <span class="keywordtype">int</span>         minbuttonid;00340     <span class="comment">/* The maximal button identifier. */</span>00341     <span class="keywordtype">int</span>         maxbuttonid;00342 } myWINMENUITEMS;00343 00372 MGEXT_EXPORT <span class="keywordtype">int</span> <a class="code" href="group__mywins__helpers.htm#ga16">myWinMenu</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hParentWnd, <span class="keyword">const</span> <span class="keywordtype">char</span>* title, 00373                 <span class="keyword">const</span> <span class="keywordtype">char</span>* label, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> listboxheight, 00374                 <span class="keywordtype">char</span> ** items, <span class="keywordtype">int</span> * listItem, <a class="code" href="struct__myWinButton.htm">myWINBUTTON</a>* buttons);00375 <a name="l00380"></a><a class="code" href="struct__myWinEntry.htm">00380</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__myWinEntry.htm">_myWinEntry</a>00381 {<a name="l00383"></a><a class="code" href="struct__myWinEntry.htm#o0">00383</a>     <span class="keywordtype">char</span>*   <a class="code" href="struct__myWinEntry.htm#o0">text</a>;<a name="l00385"></a><a class="code" href="struct__myWinEntry.htm#o1">00385</a>     <span class="keywordtype">char</span>**  <a class="code" href="struct__myWinEntry.htm#o1">value</a>;<a name="l00387"></a><a class="code" href="struct__myWinEntry.htm#o2">00387</a>     <span class="keywordtype">int</span>     <a class="code" href="struct__myWinEntry.htm#o2">maxlen</a>;<a name="l00389"></a><a class="code" href="struct__myWinEntry.htm#o3">00389</a>     <a class="code" href="group__win32__types.htm#ga4">DWORD</a>   <a class="code" href="struct__myWinEntry.htm#o3">flags</a>;00390 } <a class="code" href="struct__myWinEntry.htm">myWINENTRY</a>;00391 00392 <span class="comment">/* This is an internal structure. */</span>00393 <span class="keyword">typedef</span> <span class="keyword">struct </span>_myWinEntryItems00394 {00395     <a class="code" href="struct__myWinEntry.htm">myWINENTRY</a>* entries;00396     <span class="keywordtype">int</span>         entrycount;00397     <span class="keywordtype">int</span>         firstentryid;00398     <span class="keywordtype">int</span>         minbuttonid;00399     <span class="keywordtype">int</span>         maxbuttonid;00400 } myWINENTRYITEMS;00401 00429 MGEXT_EXPORT <span class="keywordtype">int</span> <a class="code" href="group__mywins__helpers.htm#ga17">myWinEntries</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hParentWnd, <span class="keyword">const</span> <span class="keywordtype">char</span>* title, 00430                 <span class="keyword">const</span> <span class="keywordtype">char</span>* label, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> editboxwidth, 00431                 <a class="code" href="group__simple__types.htm#ga0">BOOL</a> fIME, <a class="code" href="struct__myWinEntry.htm">myWINENTRY</a>* items, <a class="code" href="struct__myWinButton.htm">myWINBUTTON</a>* buttons);00432 00450 MGEXT_EXPORT <span class="keywordtype">int</span> <a class="code" href="group__mywins__helpers.htm#ga18">myWinHelpMessage</a> (<a class="code" href="group__handles.htm#ga1">HWND</a> hwnd, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height,00451                 <span class="keyword">const</span> <span class="keywordtype">char</span>* help_title, <span class="keyword">const</span> <span class="keywordtype">char</span>* help_msg);00452 00459 <span class="preprocessor">#ifdef __cplusplus</span>00460 <span class="preprocessor"></span>}00461 <span class="preprocessor">#endif  </span><span class="comment">/* __cplusplus */</span>00462 00463 <span class="preprocessor">#endif </span><span class="comment">/* _MGUI_MYWINDOWS_H */</span>00464 </pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:51 2007 for MiniGUI V1.6.10 API Reference by&nbsp;<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 + -