Esempio n. 1
0
void CPropPageFrame::DrawMsg(CDC *pDc, CRect rect, LPCTSTR /*lpszMsg*/, DWORD /*dwFormat*/)
{
    CFont   *pPrevFont = dynamic_cast<CFont*>(pDc->SelectStockObject(DEFAULT_GUI_FONT));
    int     nPrevBkMode = pDc->SetBkMode(TRANSPARENT);

    pDc->DrawText(GetMsgText(), rect, GetMsgFormat());

    pDc->SetBkMode(nPrevBkMode);
    pDc->SelectObject(pPrevFont);
}
void CPropPageFrame::DrawMsg(CDC *pDc, CRect rect, LPCTSTR /*lpszMsg*/, DWORD /*dwFormat*/) 
{
	CFont	*pPrevFont = (CFont*)pDc->SelectObject(AfxGetMainWnd()->GetFont());
	int		nPrevBkMode = pDc->SetBkMode(TRANSPARENT);

	pDc->DrawText(GetMsgText(), rect, GetMsgFormat());

	pDc->SetBkMode(nPrevBkMode);
	pDc->SelectObject(pPrevFont);
}
void CPropPageFrame::DrawMsg(CDC *pDc, CRect rect, LPCTSTR lpszMsg, DWORD dwFormat) 
{
	CFont	*pPrevFont = (CFont*)pDc->SelectStockObject(DEFAULT_GUI_FONT);
	int		nPrevBkMode = pDc->SetBkMode(TRANSPARENT);

	pDc->DrawText(GetMsgText(), rect, GetMsgFormat());

	pDc->SetBkMode(nPrevBkMode);
	pDc->SelectObject(pPrevFont);
}