// for get info from document class
	strText = pDoc->GetText();
	lfFont  = pDoc->GetFontInfo();
	clrNew  = pDoc->GetColorInfo();

	// get size
	GetClientRect(&rcPoint);

	//// create the font
	VERIFY(fntNew.CreateFontIndirect(&lfFont));

	// create font
	CFont* fntOld = pDC->SelectObject(&fntNew);

	// set text color
	pDC->SetTextColor(clrNew);

	// for display text
    pDC->DrawText(strText, strText.GetLength(), &rcPoint,0 );

	// delete font
	fntOld->DeleteObject();

pDC is the Client device.
what property i want to set for to display the Text
with specified color and font in DrawText Method?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.