------解决方案--------------------m_nCur=pSlidCtrl->GetPos();然后SetWindowTextvoid CSlidDlg::OnHScroll(UINT nSBCode,UINT nPos,CScrollBar *pScrollBar){ //TODO:Add your message handler?Cdialog::OnHScroll(nSBCode,nPos,pScrollBar);CSliderCtrl *pSlidCtrl=(CSliderCtrl*)GetDlgItem(IDC_SLLIDER);m_nCur=pSlidCtrl->GetPos();//取得当前位置值SetWindowText()... } ------解决方案--------------------CSliderCtrl::GetPos();