wmsgdlg.cpp
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C++ 代码 · 共 36 行
CPP
36 行
#include "wmsgdlg.hpp"
#include "wwindow.hpp"
#include "wstring.hpp"
extern "C" {
#include <stdio.h>
#include <stdarg.h>
}
#define MAX_MESSAGE 500
WEXPORT WMessageDialog::WMessageDialog( WWindow* parent, char* text, char* caption, MsgType type )
{
MessageBox( parent->handle(), text, caption, type );
}
void WEXPORT WMessageDialog::message( WWindow* parent, MsgType type, char* text... )
{
WString txt( MAX_MESSAGE );
va_list args;
va_start( args, text );
vsprintf( txt, text, args );
(void)WMessageDialog( parent, txt, NIL, type );
}
void WEXPORT WMessageDialog::info( WWindow* parent, char* text... )
{
WString txt( MAX_MESSAGE );
va_list args;
va_start( args, text );
vsprintf( txt, text, args );
(void)WMessageDialog( parent, txt, NIL, MsgOk );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?