Hi,

I want to change the default font of the Rich Edit control at run time.

I tried making use of CRichEditCtrl::SetDefaultCharFormat() function
and changing the szFaceName member of CHARFORMAT structure. It did not work.
The function help says "Only the attributes specified by the dwMask member of cf are
changed by this function." I did not see any attribute that can be used to change the
font.
I tried this before putting any text in the control.

Can anyone one tell me how to change font of Rich Edit control at run time?

Cheers,
Sanjeet