Click to See Complete Forum and Search --> : How do I set the default for a stock font ?


Colin Grant
April 19th, 1999, 08:30 AM
With an ActiveX MFC COM control, how do I set a font to be used if there isn't an ambient font ?

I'm hoping that there is a way to set up the control so that DoPropExchange will continue to automatically load my stock properties but use a default font of my choice if the container does not support AmbientFont.

TIA

Colin Grant
April 22nd, 1999, 03:50 AM
Since no-one else replied, the answer is to use the OnResetState function to set up the object after the property exchange has happened. A call to AmbientFont() will show if a default font is needed.