msgbox.cpp
来自「这个程序是一个Win32程序」· C++ 代码 · 共 36 行
CPP
36 行
//
// MsgBox.cpp - cMsgBox implementation
// Rev. 2
//
// by Razorfish (razorfish2k@bigfoot.com)
// ------------------------------------------------------------------
#define STRICT
#pragma warning( disable : 4201 4514)
#include <windows.h>
#include "GenClass.h"
cMsgBox::cMsgBox(TCHAR *ptcM, TCHAR *ptcT)
{
ptcMsg = ptcM;
ptcTitle = ptcT;
uiStyle = MB_OK | MB_ICONINFORMATION | MB_DEFBUTTON1;
}
cMsgBox::~cMsgBox()
{
// Class Destructor
}
int cMsgBox::setStyle(UINT uiS)
{
uiStyle = uiS;
return 0;
}
int cMsgBox::show(void)
{
return MessageBox(NULL, ptcMsg, ptcTitle, uiStyle);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?