网站首页  词典首页

请输入您要查询的函数:

 

术语 messageboxindirect
释义 MessageBoxIndirect
语法:
int MessageBoxIndirect( const LPMSGBOXPARAMS lpMsgBoxParams
);
MessageBoxIndirect功能
该MessageBoxIndirect函数创建,显示和操作一个消息框。该消息框包含应用程序定义的消息和标题的文本,任何图标,和任何预定义的按键组合。
参数
lpMsgBoxParams
[in]指向1 MSGBOXPARAMS结构,它包含用于显示消息框的信息。
返回值
如果函数成功,返回值为下列其中一个菜单项的值。
如果一个消息框有一个取消按钮,则函数返回IDCANCEL值如果不是Esc键被按下或取消按钮被选中。如果消息框没有取消按钮,按下ESC键无效。
如果没有足够的内存来创建消息框,返回值是零。
IDABORTAbort按钮被选中。
IDCANCELCancel按钮被选中。
IDCONTINUEContinue按钮被选中。
IDIGNOREIgnore按钮被选中。
IDNONo按钮被选中。
IDOKOK按钮被选中。
IDRETRYRetry按钮被选中。
IDTRYAGAINTry再次按钮被选中。
IDYESYes按钮被选中。
备注
当您使用系统模式消息框,表明该系统内存不足,字符串指向的lpszText及MSGBOXPARAMS结构lpszCaption成员不应该从一个资源文件采取的,因为尝试加载资源可能失败。
如果您创建一个消息框时出现一个对话框,目前,使用句柄作为hWnd参数对话框。在hWnd参数不能确定,如在一个对话框控件一个子窗口。
Windows 95/98/Me中:该系统可以支持最多16364窗口句柄。
视窗95/98:MessageBoxIndirectW是支持微软层对于Unicode。要使用此,您必须将某些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98/Me系统。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 4.0
UnicodeImplemented为ANSI和Unicode版本。
参见
对话框概述,这些URL,MessageBoxEx,MSGBOXPARAMS
==英文原文==MessageBoxIndirect Function
The MessageBoxIndirect function creates, displays, and operates a message box. The message box contains application-defined message text and title, any icon, and any combination of predefined push buttons.
Syntax
int MessageBoxIndirect( const LPMSGBOXPARAMS lpMsgBoxParams
);
Parameters
lpMsgBoxParams
[in] Pointer to a MSGBOXPARAMS structure that contains information used to display the message box.
Return Value
If the function succeeds, the return value is one of the following menu-item values.
If a message box has a Cancel button, the function returns the IDCANCEL value if either the ESC key is pressed or the Cancel button is selected. If the message box has no Cancel button, pressing ESC has no effect.
If there is not enough memory to create the message box, the return value is zero.
IDABORTAbort button was selected.
IDCANCELCancel button was selected.
IDCONTINUEContinue button was selected.
IDIGNOREIgnore button was selected.
IDNONo button was selected.
IDOKOK button was selected.
IDRETRYRetry button was selected.
IDTRYAGAINTry Again button was selected.
IDYESYes button was selected.
Remarks
When you use a system-modal message box to indicate that the system is low on memory, the strings pointed to by the lpszText and lpszCaption members of the MSGBOXPARAMS structure should not be taken from a resource file, because an attempt to load the resource may fail.
If you create a message box while a dialog box is present, use a handle to the dialog box as the hWnd parameter. The hWnd parameter should not identify a child window, such as a control in a dialog box.
Windows 95/98/Me: The system can support a maximum of 16,364 window handles.
Windows 95/98/Me: MessageBoxIndirectW is supported by the Microsoft Layer for Unicode. To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems .
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 4.0
UnicodeImplemented as ANSI and Unicode versions.
See Also
Dialog Boxes Overview , MessageBox , MessageBoxEx , MSGBOXPARAMS
==原始网址==http://msdn.microsoft.com/en-us/library/ms645511(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 9:18:38