OnCtlColor函数怎么出现了2个返回值?
1.HBRUSH CTestDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
2.{
3. HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
4.
5. // TODO: Change any attributes of the DC here
6. if (pWnd-> GetDlgCtrlID() == IDC_STATIC_INFO)
7. {
8. pDC-> SetTextColor(RGB(255,0,0)); //字体颜色
9. pDC-> SetBkColor(RGB(0, 0, 255)); //字体背景色
10.
11. return (HBRUSH)::GetStockObject(BLACK_BRUSH); //设置背景色
12. }
13.
14. // TODO: Return a different brush if the default is not desired
15. return hbr;
16.}
————
执行完 return (HBRUSH)::GetStockObject(BLACK_BRUSH); 这一句函数就应该返回了呀?
怎么又去执行 return hbr;
OnCtlColor函数怎么出现了2个返回值?