2006-06-15 04:19:30 +00:00
|
|
|
#include "OutputWnd.h"
|
2006-07-13 02:44:13 +00:00
|
|
|
#include "../PS2VM.h"
|
2006-06-15 04:19:30 +00:00
|
|
|
|
2007-02-20 21:16:34 +00:00
|
|
|
#define CLSNAME _T("COutputWnd")
|
2012-09-06 06:32:15 +00:00
|
|
|
#define WNDSTYLE (WS_VISIBLE | WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN)
|
2006-06-15 04:19:30 +00:00
|
|
|
|
2012-09-06 06:32:15 +00:00
|
|
|
COutputWnd::COutputWnd(HWND hParent)
|
2006-06-15 04:19:30 +00:00
|
|
|
{
|
|
|
|
if(!DoesWindowClassExist(CLSNAME))
|
|
|
|
{
|
|
|
|
WNDCLASSEX wc;
|
|
|
|
memset(&wc, 0, sizeof(WNDCLASSEX));
|
|
|
|
wc.cbSize = sizeof(WNDCLASSEX);
|
|
|
|
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
|
|
|
|
wc.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
|
|
|
|
wc.hInstance = GetModuleHandle(NULL);
|
|
|
|
wc.lpszClassName = CLSNAME;
|
|
|
|
wc.lpfnWndProc = CWindow::WndProc;
|
|
|
|
wc.style = CS_OWNDC | CS_HREDRAW | CS_VREDRAW;
|
|
|
|
RegisterClassEx(&wc);
|
|
|
|
}
|
|
|
|
|
2013-04-29 04:53:49 +00:00
|
|
|
Create(NULL, CLSNAME, NULL, WNDSTYLE, Framework::Win32::CRect(0, 0, 1, 1), hParent, NULL);
|
2006-06-15 04:19:30 +00:00
|
|
|
SetClassPtr();
|
|
|
|
}
|
|
|
|
|
|
|
|
COutputWnd::~COutputWnd()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-12-28 19:22:08 +00:00
|
|
|
long COutputWnd::OnEraseBkgnd()
|
|
|
|
{
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2006-06-15 04:19:30 +00:00
|
|
|
long COutputWnd::OnPaint()
|
|
|
|
{
|
|
|
|
return TRUE;
|
|
|
|
}
|