Microsoft KB Archive/127956

= DOC: Implementing Custom Font Properties Documentation =

Article ID: 127956

Article Last Modified on 8/16/2005

-

APPLIES TO


 * Microsoft OLE Control Developer's Kit (CDK)

-



This article was previously published under Q127956



SUMMARY
In Chapter 9 of the "CDK Programmer's Guide" from the OLE Control Development Kit Books Online, the following two lines of code are in error in the "Implementing a Custom Font Property" article: CFontHolder * m_fontHeading;

-and-

void CSampleControl::SetHeadingFont( LPFONTDISP HeadingFont ) The corrected lines should read: CFontHolder m_fontHeading;

-and-

void CSampleControl::SetHeadingFont( LPFONTDISP newValue ) In the first line, the member is an object, not a pointer. In the second line, "newValue" is the identifier name that ClassWizard generates, so you should use it unless the programmer changes the name in the argument list and in the generated function body.

Additional query words: setfontheading set newvalue cfontholder

Keywords: KB127956

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.