Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Constructs a CMFCPropertyGridFontProperty object.
CMFCPropertyGridFontProperty(
const CString& strName,
LOGFONT& lf,
DWORD dwFontDialogFlags = CF_EFFECTS | CF_SCREENFONTS,
LPCTSTR lpszDescr = NULL,
DWORD_PTR dwData = 0,
COLORREF color = (COLORREF)-1
);
Parameters
[in] strName
The name of the property.[in] lf
A logical font structure that specifies the attributes of the font.[in] dwFontDialogFlags
Styles that are applied to the font dialog box that is displayed when you click the property value drop-down button. The default value is the bitwise combination (OR) of CF_EFFECTS and CF_SCREENFONTS. For more information, see the Flags parameter of the CHOOSEFONT Structure.[in] lpszDescr
Description of the font property. The default value is NULL.[in] dwData
Application-specific data, such as an integer or a pointer to other data that is associated with the property. The default value is 0.[in] color
The color of the font. The default value is the default color.
Remarks
A CMFCPropertyGridFontProperty object represents a font property in a property grid font control.
Example
The following example demonstrates how construct an object of the CMFCPropertyGridFontProperty class. This example is part of the New Controls sample.
// LOGFONT lf
// CMFCPropertyGridProperty* pGroupFont
pGroupFont->AddSubItem(new CMFCPropertyGridFontProperty(_T("Font"), lf, CF_EFFECTS | CF_SCREENFONTS, _T("Specifies the default font for the dialog")));
Requirements
Header: afxpropertygridctrl.h