#include "stdafx.h"
#include "TipWnd.h"


CTipWnd::CTipWnd(void)
{
}


CTipWnd::~CTipWnd(void)
{
}
BEGIN_MESSAGE_MAP(CTipWnd, CWnd)
	ON_WM_CREATE()
	ON_WM_SIZE()
	ON_WM_PAINT()
END_MESSAGE_MAP()


int CTipWnd::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CWnd::OnCreate(lpCreateStruct) == -1)
		return -1;

	// TODO:  �ڴ�������ר�õĴ�������
	RECT rc;
	rc.left   = 0;
	rc.top    = 0;
	rc.right  = 100;
	rc.bottom = 20;
	DWORD dwStyle = ES_MULTILINE | WS_CHILD | ES_LEFT;
//	m_TipEdit.Create(dwStyle, rc, this, ID_TIP_EDIT);

	return 0;
}


void CTipWnd::OnSize(UINT nType, int cx, int cy)
{
	CWnd::OnSize(nType, cx, cy);

	m_TipEdit.MoveWindow(0, 0, cx, cy, TRUE);
}


void CTipWnd::OnPaint()
{
	CPaintDC dc(this); // device context for painting
	// TODO: �ڴ˴�������Ϣ�����������
	// ��Ϊ��ͼ��Ϣ���� CWnd::OnPaint()

// 	CRect rc;
// 	m_TipEdit.GetWindowRect(&rc);
}


// BOOL CTipWnd::CreateEx(DWORD dwExStyle, LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, LPVOID lpParam)
// {
// 	// TODO: �ڴ�����ר�ô����/����û���
// 
// 	return CWnd::CreateEx(dwExStyle, lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, nID, lpParam);
// }