This site is no longer active and is available for archival purposes only. Registration and login is disabled.

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


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

Postby Fredo » Jun 10, 2002 @ 11:11am

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
Fredo
pm Member
 
Posts: 14
Joined: Jun 3, 2002 @ 10:01am


Return to Windows Mobile


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron