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

📄 group__mywins__helpers.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 4 页
字号:
        <tr>          <td class="md" nowrap valign="top">int myWinChoice           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a>&nbsp;</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>const char *&nbsp;</td>          <td class="mdname" nowrap> <em>title</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const char *&nbsp;</td>          <td class="mdname" nowrap> <em>button1</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const char *&nbsp;</td>          <td class="mdname" nowrap> <em>button2</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const char *&nbsp;</td>          <td class="mdname" nowrap> <em>text</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>&nbsp;</td>          <td class="mdname" nowrap> <em>...</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Creates a message box within two buttons. <p>This function creates a message box hosted to the main window <em>hwnd</em>, displays a message and an application icon in the message box, and creates two buttons in it. This function also receives <em>printf-like</em> arguments to format a string.<p>This function can be used to prompt the user to choose one item between two.<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>&nbsp;</td><td>The hosting main window. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>title</em>&nbsp;</td><td>The title of the message box. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>button1</em>&nbsp;</td><td>The title of the first button. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>button2</em>&nbsp;</td><td>The title of the second button. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>The format string.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Either 0 or 1, indicates the message box was closed by the first or second button.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__mywins__helpers.htm#ga7">myWinTernary</a>, printf(3) </dd></dl>    </td>  </tr></table><a class="anchor" name="ga17" doxytag="mywindows.h::myWinEntries"></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 myWinEntries           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a>&nbsp;</td>          <td class="mdname" nowrap> <em>hParentWnd</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const char *&nbsp;</td>          <td class="mdname" nowrap> <em>title</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const char *&nbsp;</td>          <td class="mdname" nowrap> <em>label</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>width</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>editboxwidth</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>&nbsp;</td>          <td class="mdname" nowrap> <em>fIME</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="struct__myWinEntry.htm">myWINENTRY</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>items</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="struct__myWinButton.htm">myWINBUTTON</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>buttons</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Creates a entry main window for the user to enter something. <p>This function creates a entry main window including a few buttons and a few entries.<p>When the user click one of the buttons, this function will return the identifier of the button which leads to close the menu window, and the entered strings.<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>hParentWnd</em>&nbsp;</td><td>The hosting main window. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>title</em>&nbsp;</td><td>The title of the menu main window. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>label</em>&nbsp;</td><td>The label of the entries. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>The width of the menu main window. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>editboxwidth</em>&nbsp;</td><td>The width of the edit boxes. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>fIME</em>&nbsp;</td><td>Whether active the IME window (obsolete). </td></tr>    <tr><td valign="top"></td><td valign="top"><em>items</em>&nbsp;</td><td>The pointer to the array of the entries, initial and returned. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>buttons</em>&nbsp;</td><td>The buttons will be created.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Returns the identifier of the button leading to close the menu window on success, else on errors.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__mywins__helpers.htm#ga0">myWINBUTTON</a>, <a class="el" href="group__mywins__helpers.htm#ga2">myWINENTRY</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga18" doxytag="mywindows.h::myWinHelpMessage"></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 myWinHelpMessage           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a>&nbsp;</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&nbsp;</td>          <td class="mdname" nowrap> <em>width</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>height</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const char *&nbsp;</td>          <td class="mdname" nowrap> <em>help_title</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const char *&nbsp;</td>          <td class="mdname" nowrap> <em>help_msg</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Creates a help message window. <p>This function creates a help message window including a scrollable help message and a spin box. When the user click the OK button, this function will return.<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>&nbsp;</td><td>The hosting main window. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>The width of the help message window. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>height</em>&nbsp;</td><td>The height of the help message window. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>help_title</em>&nbsp;</td><td>The title of the window. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>help_msg</em>&nbsp;</td><td>The help message.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>0 on success, -1 on error. </dd></dl>    </td>  </tr></table><a class="anchor" name="ga16" doxytag="mywindows.h::myWinMenu"></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 myWinMenu           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a>&nbsp;</td>          <td class="mdname" nowrap> <em>hParentWnd</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const char *&nbsp;</td>          <td class="mdname" nowrap> <em>title</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const char *&nbsp;</td>          <td class="mdname" nowrap> <em>label</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>width</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>listboxheight</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>char **&nbsp;</td>          <td class="mdname" nowrap> <em>items</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>

⌨️ 快捷键说明

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