共用方式為


CWnd::OnSysColorChange

The framework calls this member function for all top-level windows when a change is made in the system color setting.

afx_msg void OnSysColorChange( );

Remarks

Windows calls OnSysColorChange for any window that is affected by a system color change.

Applications that have brushes that use the existing system colors should delete those brushes and re-create them with the new system colors.

Requirements

Header: afxwin.h

See Also

Reference

CWnd Class

Hierarchy Chart

SetSysColors

WM_SYSCOLORCHANGE

Concepts

CWnd Members