home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 March
/
VPR9703A.ISO
/
VPR_DATA
/
DOGA
/
SOURCES
/
TCH2AVI.LZH
/
TSHWWNDW.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1996-05-16
|
1KB
|
75 lines
/* Project tch2avi
Project Team DoGA
Copyright (c) 1996. All Rights Reserved.
サブシステム: tch2avi.apx Application
ファイル: tshwwndw.cpp
作成者: Masamichi Takatsu
概要
====
TShowWindow (TWindow) のインプリメンテーション用のソースファイル
*/
#include <owl\owlpch.h>
#pragma hdrstop
#include "tshwwndw.h"
extern TDib *dib;
extern char mess[256];
//{{TShowWindow Implementation}}
TShowWindow::TShowWindow (TWindow* parent, const char far* title, TModule* module):
TWindow(parent, title, module)
{
// ウィンドウの背景色を変更する
// SetBkgndColor(RGB(0xc0, 0xc0, 0xc0));
// INSERT>> コンストラクタ用のコードはここに
}
TShowWindow::~TShowWindow ()
{
Destroy();
// INSERT>> デストラクタ用のコードはここに
}
void TShowWindow::Redraw(void)
{
if (dib) {
// MoveWindow(0, 0, dib->Width(), dib->Height(), TRUE);
// TClientDC dc(*this);
// TRect clientRect(0,0,dib->Width(), dib->Height());
// dc.SetDIBitsToDevice(clientRect, TPoint(0,0), *dib);
// Invalidate();
}
}
void TShowWindow::Paint (TDC& dc, BOOL erase, TRect& rect)
{
TWindow::Paint(dc, erase, rect);
// INSERT>> 追加のコードはここに
dc.SelectObject(TPen(TColor::White));
dc.Rectangle(rect);
if (dib) {
TRect clientRect(0,0,dib->Width(), dib->Height());
dc.SetDIBitsToDevice(clientRect, TPoint(0,0), *dib);
}
if (mess[0]) {
dc.TextOut(0,0,mess);
}
}