Page 1 of 1

How to get the"Font" property to work in an ATL COM control?

PostPosted: Jun 10, 2002 @ 11:11am
by Fredo
Hi,

I'm desperately trying to get the "Font" property to work in an ATL COM Control.
I create a full control within the wizard (eVC 3.0) and add the stock font property. I also provide an implementation of SetClientSite which initializes the m_pFont member via GetAmbientFont.
My problem: The desktop version runs as expepected, setting the font correctly. The PocketPC version however DOES NOT work, i.e GetAmbientFont sets the m_pFont to NULL.
Any ideas how to get the "Font" property to work? Am I missing something that must be considered when writing Font-enabled controls for the PocketPC platform?

TIA,
Fredo