The information in this article applies to:
SYMPTOMSMFC Controls support a set of standard properties. One of these properties is Appearance (DISPID_APPEARANCE). Appearance is implemented to give a control a 3-D look. If the control is used on a version of Windows or Windows NT less than 4.0, the Appearance property will not affect the appearance of the control at run time. CAUSEAt run time, the Appearance property is implemented in an MFC control by setting an extended window style WS_EX_CLIENTEDGE. This window style is not supported on versions of Windows or Windows NT less than 4.0. RESOLUTIONIt is possible to supply your own implementation of the Appearance property although this technique will not work for subclassed Windows controls. STATUSThis behavior is by design. MORE INFORMATIONUsing the Class Wizard, add the stock Appearance property but choose Get/Set methods rather that accepting the stock implementation. In the control, declare a member variable of type BOOL to represent the Appearance property. The stock Get/Set functions can be copied and changed slightly to manipulate this variable as well as handle the property binding requirements. In the Draw function, draw a 3-D border depending on the value of this variable. Sample Code
Additional query words: 4.00 4.10 DISPID_APPEARANCE
Keywords : kbole kbMFC kbVC |
Last Reviewed: January 14, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |