IDC_CROSS);//查找类名::GetClassName(pWnd->GetSafeHwnd(),sClassName.GetBuffer(80),80);//如果类名为“Button”且m_hCursor的值不为空if (sClassName=="Button" && m_hCursor){//修改光标::SetCursor(m_hCursor);