CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    10

    How do I set the default for a stock font ?

    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


  2. #2
    Join Date
    May 1999
    Posts
    10

    Re: How do I set the default for a stock font ?

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured