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

📄 messagebox.h

📁 c+++ game uploading now
💻 H
字号:
/**
 @file
 A thin encapsulation of the Win32 MessageBox API.
*/
#if !defined _MYLIB__MESSAGEBOX__H_
#define _MYLIB__MESSAGEBOX__H_
#include <windows.h>

namespace Win
{
    /**
     displays a win32 MessageBox */
    class MessageBox
    {
    public:
        MessageBox(HWND hWndParent, 
                   const char* Text, 
                   const char* Caption=0,
                   UINT Type=MB_OK)
        {
            _status=::MessageBox(hWndParent, Text, Caption, Type);
        }
        UINT Status() const
        {
            return _status;
        }
    private:
        UINT _status;
    };
}

#endif //_MYLIB__MESSAGEBOX__H_

⌨️ 快捷键说明

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