CWnd::OnCtlColor
CWnd::OnCtlColor
Visual Studio 2005
Other Versions
The framework calls this member function when a child control is about to be drawn.//하위 공간 그리기 시 이 함수 호출
Copy
afx_msg HBRUSH OnCtlColor(
CDC* pDC,
CWnd* pWnd,
UINT nCtlColor
);
Parameters
pDC
Contains a pointer to the display context for the child window. May be temporary.
pWnd
Contains a pointer to the control asking for the color. May be temporary.
nCtlColor
Contains one of the following values, specifying the type of control:
OnCtlColor must return a handle to the brush that is to be used for painting the control background.