Share via


CMFCPropertyGridProperty::OnCtlColor

Called by the framework when it must retrieve a brush to fill the background color of a property.

virtual HBRUSH OnCtlColor(
   CDC* pDC,
   UINT nCtlColor 
);

Parameters

  • [in] pDC
    Pointer to a device context.

  • [in] nCtlColor
    (This parameter is not used.)

Return Value

The handle to a brush if this method is successful; otherwise, NULL.

Requirements

Header: afxpropertygridctrl.h

See Also

Reference

CMFCPropertyGridProperty Class

Hierarchy Chart