// MessDlg.cpp : implementation file
//

#include "stdafx.h"
#include "wseerc1.h"
#include "MessDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMessDlg dialog


CMessDlg::CMessDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CMessDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CMessDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CMessDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMessDlg)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CMessDlg, CDialog)
	//{{AFX_MSG_MAP(CMessDlg)
	ON_WM_PAINT()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMessDlg message handlers

void CMessDlg::OnPaint() 
{
       CRect rect;

       CPaintDC dc(this);
       GetClientRect(rect);
	   rect+=CPoint(10,10);
	
       //dc.SetTextAlign(TA_CENTER);
	   CFont font;
	   font.CreateFont( 20, 0, 0, 0, FW_DONTCARE, 0, 0, 0, DEFAULT_CHARSET,
		   OUT_CHARACTER_PRECIS,
		   CLIP_DEFAULT_PRECIS, 
		   0,//DRAFT_QUALITY , 
		   DEFAULT_PITCH, NULL);
	   CFont *prevfont=dc.SelectObject(&font);


       dc.SetTextColor(::GetSysColor(COLOR_WINDOWTEXT));
       dc.SetBkMode(TRANSPARENT);

	   dc.DrawText( msg, rect, DT_LEFT);	
	   dc.SelectObject(prevfont);
}
