共用方式為


COleControl::SetForeColor

Sets the stock ForeColor property value of your control.

void SetForeColor(
   OLE_COLOR dwForeColor 
);

Parameters

  • dwForeColor
    An OLE_COLOR value to be used for foreground drawing of your control.

Remarks

For more information on using this property and other related properties, see the article ActiveX Controls: Properties.

Requirements

Header: afxctl.h

See Also

Concepts

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::SetBackColor

COleControl::GetForeColor

COleControl::OnForeColorChanged