How to render CRichEditCtrl on CDC with transparent backgorund ? (MFC)
问题 I need help with rendering CRichEditCtrl content with transparent background on graphical context which is displayed on screen and printed as well. Now I have following code, which is working good except transparency issues: CRichEditCtrl ctrl; // my CRichEditCtrl CDC *dc; // - my graphical context dc->SetBkMode(TRANSPARENT); dc->DPtoHIMETRIC(&targetSize); CRect cHiMetricRect( 0, 0, origSize.cx*factor,origSize.cy*factor); CRect cTwipsRect( 0, 0, (TWIPS_INCH * targetSize.cx + HIMETRIC_INCH / 2