📄 group__msgbox__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: Message box 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 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>Message box operations<br><small>[<a class="el" href="group__window__create__fns.htm">Window creating/destroying</a>]</small></h1><h2>Functions</h2><ul><li>MG_EXPORT int GUIAPI <a class="el" href="group__msgbox__fns.htm#ga0">MessageBox</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hParentWnd, const char *pszText, const char *pszCaption, <a class="el" href="group__win32__types.htm#ga4">DWORD</a> dwStyle)<dl class="el"><dd class="mdescRight">Displays a message box within one, two, or three push buttons. <a href="#ga0"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__msgbox__fns.htm#ga1">MessageBeep</a> (<a class="el" href="group__win32__types.htm#ga4">DWORD</a> dwBeep)<dl class="el"><dd class="mdescRight">Makes a sound of beep. <a href="#ga1"></a><br></dl></ul><hr><h2>Function Documentation</h2><a class="anchor" name="ga1" doxytag="window.h::MessageBeep"></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">void GUIAPI MessageBeep </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__win32__types.htm#ga4">DWORD</a> </td> <td class="mdname1" valign="top" nowrap> <em>dwBeep</em> </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>Makes a sound of beep. <p>This function makes a sound of beep. We ignore <em>dwBeep</em> argument so far.<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>dwBeep</em> </td><td>The beep type, ignored so far.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__misc__fns.htm#ga29">Beep</a>, <a class="el" href="group__misc__fns.htm#ga11">Ping</a>, <a class="el" href="group__misc__fns.htm#ga12">Tone</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga0" doxytag="window.h::MessageBox"></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 GUIAPI MessageBox </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a> </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 * </td> <td class="mdname" nowrap> <em>pszText</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>pszCaption</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__win32__types.htm#ga4">DWORD</a> </td> <td class="mdname" nowrap> <em>dwStyle</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Displays a message box within one, two, or three push buttons. <p>This function displays a message box within one, two, or three buttons, and returns the identifier of the button clicked by the user. You can pass <em>dwStyle</em> argument with different values to control the number of buttons, the button titles, and so on.<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> </td><td>The handle to the hosting main window. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pszText</em> </td><td>The message text will be displayed in the message box. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pszCaption</em> </td><td>The caption of the message box. </td></tr> <tr><td valign="top"></td><td valign="top"><em>dwStyle</em> </td><td>Specifies the contents and behavior of the dialog box. This parameter can be a combination of flags from the following groups of flags.</td></tr> </table></dl>To indicate the buttons displayed in the message box, specify one of the following values.<ul><li>MB_OK<br> Create a message box within only one button whose title is "OK".</li><li>MB_OKCANCEL<br> Create a message box within two buttons whose title are "OK" and "Cancel" respectively.</li><li>MB_YESNO<br> Create a message box within two buttons whose title are "Yes" and "No" respectively.</li><li>MB_RETRYCANCEL<br> Create a message box within two buttons whose title are "Retry" and "Cancel" respectively.</li><li>MB_ABORTRETRYIGNORE<br> Create a message box within three buttons whose title are "Abort", "Retry" and "Ignore" respectively.</li><li>MB_YESNOCANCEL<br> Create a message box within three buttons whose title are "Yes", "No" and "Cancel" respectively.</li><li>MB_CANCELASBACK<br> Title "Cancel" replaced with title "Previous".</li></ul><p>To display an icon in the message box, specify one of the following values.<ul><li>MB_ICONHAND<br> Display a hand/stop icon in the message box.</li><li>MB_ICONQUESTION<br> Display a question mark icon in the message box.</li><li>MB_ICONEXCLAMATION<br> Display a exclamation mark icon in the message box.</li><li>MB_ICONASTERISK<br> Display an information icon in the message box.</li><li>MB_ICONINFORMATION<br> Display an information icon in the message box.</li><li>MB_ICONSTOP<br> Display a hand/stop icon in the message box.</li></ul><p>To indicate the default button, specify one of the following values.<ul><li>MB_DEFBUTTON1<br> The first button is the default button.</li><li>MB_DEFBUTTON2<br> The second button is the default button.</li><li>MB_DEFBUTTON3<br> The third button is the default button.</li></ul><p>To indicate the default text alignment, specify one of the following values.<ul><li>MB_ALIGNCENTER<br> The message box is center aligned.</li><li>MB_ALIGNTOPLEFT<br> The message box is upper-left aligned.</li><li>MB_ALIGNBTMLEFT<br> The message box is lower-left aligned.</li><li>MB_ALIGNTOPRIGHT<br> The message box is upper-right aligned.</li><li>MB_ALIGNBTMRIGHT<br> The message box is lower-right aligned.</li></ul><p>To indicate the default align based on hosting window, specify the following value.<ul><li>MB_BASEDONPARENT<br> A flag indicates that the alignments above are based on the hosting window, not the desktop.</li></ul><p><dl compact><dt><b>Returns:</b></dt><dd>The identifier of the button clicked by user, can be one of the following values:<ul><li>IDOK<br> The "OK" button clicked.</li><li>IDCANCEL<br> The "Cancel" or "Previous" button clicked.</li><li>IDABORT<br> The "Abort" button clicked.</li><li>IDRETRY<br> The "Retry" button clicked.</li><li>IDIGNORE<br> The "Ignore" button clicked.</li><li>IDYES<br> The "Yes" button clicked.</li><li>IDNO<br> The "No" button clicked.</li></ul></dd></dl><dl compact><dt><b>Note:</b></dt><dd>This function will call <em>GetSysText</em> to translate the button titles to localized text.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__sys__text.htm#ga2">GetSysText</a>, <a class="el" href="group__dialog__fns.htm#ga6">DialogBoxIndirectParam</a> </dd></dl> </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:55 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 + -