If you use code blocks (described in the posting guidelines...you did read them, didn't you?) then formatting is preserved:
Code:
buf=GetJobItem(tmpJobNew,1);
buf.TrimRight(); 
if(buf.GetLength()>0) 
{ 
	if((tmpJobNew.wOfferMask & 0x4000) != 0) 
	{ 
		dc.SetTextColor(RED); 
	} 
	else 
	{ 
		dc.SetTextColor(BLACK); 
	} 
	dc.ExtTextOut(leftStart,topStart,ETO_OPAQUE,NULL, _T("Name:"), NULL); 
	tmp=GetJobItem(tmpJobNew, 2); 
	//tmp.TrimRight(); 
	if (tmp.GetLength()>0) 
	{ 
		tmp.Format(_T(" (%s)"),tmpJobNew); 
		//buf+=_T(", "); 
		buf=buf+tmp; 
	} 
#if defined(IVD_SAPPHIRE)
	dc.ExtTextOut(50+leftStart,topStart,ETO_OPAQUE,NUL L,buf, NULL);
#else 
	dc.ExtTextOut(100+leftStart,topStart,ETO_OPAQUE,NU LL,buf, NULL);
#endif topStart=topStart+nHeight; 
}