好象没这个功能吧,加上TBS_TOOLTIPS风格,当你拖动滑杆时会显示一个tool-tip里面显示当前数字.

解决方案 »

  1.   

    那还不简单,说清楚点嘛,在滑动控件上右键,选classWizard 响应NM_CUSTOMDRAW消息,在消息响应函数里:
    void CSlipDlg::OnCustomdrawSlider1(NMHDR* pNMHDR, LRESULT* pResult) 
    {
    // TODO: Add your control notification handler code here

    char buff[10]="";
    sprintf(buff,"%d",((CSliderCtrl*)GetDlgItem(IDC_SLIDER1))->GetPos());
    SetDlgItemText(IDC_EDIT1,buff); *pResult = 0;
    }
      

  2.   

    void CSlipDlg::OnChangeEdit1() 
    {
    // TODO: If this is a RICHEDIT control, the control will not
    // send this notification unless you override the CDialog::OnInitDialog()
    // function and call CRichEditCtrl().SetEventMask()
    // with the ENM_CHANGE flag ORed into the mask.

    // TODO: Add your control notification handler code here      ((CSliderCtrl*)GetDlgItem(IDC_SLIDER1))->SetPos(GetDlgItemInt(IDC_EDIT1));
    }