messagebox.h

来自「c+++ game uploading now」· C头文件 代码 · 共 34 行

H
34
字号
/**
 @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 + =
减小字号Ctrl + -
显示快捷键?