wport.cpp
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C++ 代码 · 共 27 行
CPP
27 行
#include "wport.hpp"
extern "C" {
#include <string.h>
}
WEXPORT WPort::WPort( WWindow* host )
: _dc( 0 )
, _host( host )
, _font( NIL )
, _brush( NIL )
, _pen( NIL )
, _palette( NIL )
{
_dc = GetDC( _host->handle() );
}
WEXPORT WPort::~WPort()
{
ReleaseDC( _host->handle(), _dc );
}
void WEXPORT WPort::textOut( const WRect& r, char* text )
{
TextOut( _dc, r.x(), r.y(), text, strlen( text ) );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?