Here's how to call a Message Box with a timeout, the message box closes itself after the timeout period was reached.
The trick is to call an undocumented MessageBoxTimeout API located in user32.dll.
The function returns an integer value of either a MB_TIMEDOUT value (indicating the timeout period was reached and the Message Box auto closed), or a value representing the button the user clicked.
Timeout MessageBox
原创
©著作权归作者所有:来自51CTO博客作者小宇飞刀的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
MessageBox
MessageBox指的是显示一个模态对话框,其中包含一个系统图标、 一组按钮和一个简短的特定于应用程序消息,如状态
后端 #define 消息框 ico -
Function MessageBox
<br />对应对象:TApplication 声明:function MessageBox(Text,Caption:PChar;Flags:Word):Integer; 功能:MessageBox方法可以
function delphi integer windows application
















