Slider control in CFormView
void CSampleView::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{
CSliderCtrl* slider = (CSliderCtrl*)pScrollBar;
int position = slider->GetPos();
SetDlgItemInt(IDC_VALUE, position);
CFormView::OnHScroll(nSBCode, nPos, pScrollBar);
}
Here, IDC_VALUE is the control id of one of the Edit controls. The slider control is working fine. But whenever I move the horizontal scroll bar added by the application, the aplication hangs up. I know, I should do something regarding the OnHScroll function. But, I don't know what to do. Can you help me?
Parag

