zoukankan      html  css  js  c++  java
  • Timeout MessageBox

     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.
    Notice that the return value is always 1, when a message box with only an OK button (MB_OK Flag) is used.

    谢祥选【小宇飞刀(xieyunc)】
  • 相关阅读:
    [bbk3153] 第62集 Chapter 15Application Tuning(02)
    [bbk3152] 第61集 Chapter 15Application Tuning(01)
    [bbk1190]第2集 Chapter 01Oracle Architectural
    PL/SQL高级Creating Packages (01)
    Statspack00
    [bbk3201] 第64集 Chapter 16Using Materialized Views 00
    该如何选择国外VPS
    优化升级logging封装RotatingFileHandler
    smtp ssl模式邮件发送与附件添加
    smtp outlook邮件发送非授权码模式
  • 原文地址:https://www.cnblogs.com/xieyunc/p/2793728.html
Copyright © 2011-2022 走看看