www.pudn.com > ODBCApi.rar > StaticEx.cpp


// StaticEx.cpp : ʵÏÖÎļþ 
// 
 
#include "stdafx.h" 
#include "DeskOutDlg.h" 
#include "StaticEx.h" 
#include ".\staticex.h" 
 
 
// CStaticEx 
 
IMPLEMENT_DYNAMIC(CStaticEx, CStatic) 
CStaticEx::CStaticEx() 
{ 
} 
 
CStaticEx::~CStaticEx() 
{ 
} 
 
 
BEGIN_MESSAGE_MAP(CStaticEx, CStatic) 
	ON_WM_SIZE() 
END_MESSAGE_MAP() 
 
void CStaticEx::OnSize(UINT nType, int cx, int cy) 
{ 
	CStatic::OnSize(nType, cx, cy); 
	CWnd* pWnd = GetWindow(GW_CHILD); 
	if(IsChild(pWnd)) 
	{ 
		pWnd->MoveWindow(0, 0, cx, cy); 
	} 
}