Posted on 1998-11-12
I need to make a CRichEditCtrl to print into a metafile dc.
I've already tried this way:
// 'dc' is the client DC
cMetaDC.CreateEnhanced(&dc, NULL, NULL, NULL);
But the rich text control didn't print anything ...
A few tips what i've already tried:
- Print it to a bitmap (Memory DC, selecting bitmap in it).
- Instead of passing 'NULL' as 'lpBounds' for
'CreateEnhanced', i've tried to pass the valid bounds
(in HIMETRIC units). Didn't work.
I assume that maybe this is caused by the fact that a
metafile DC doesn't have an attribute DC (m_hAttribDC).
Is this the problem, and if yes, is there a possibility to
work around this? If no, what can i do? This is really