Hi all:
In my win32 dialog application,there is check box and two slider control.what i want is when checking the check box will enable the two slider control.when drag the slider control,it can get the pos and display int a edit control.But when i debug the code,it can't get the message.
case WM_INITDIALOG:
{
HWND sliderConLo = GetDlgItem(hwndDlg,IDC_SLIDERLOWER);
HWND sliderConHi = GetDlgItem(hwndDlg,IDC_SLIDERHIGHER);
SendMessage(sliderConLo,TBM_SETRANGE, (WPARAM)1,(LPARAM)MAKELONG(0,100));
SendMessage(sliderConHi,TBM_SETRANGE, (WPARAM)1,(LPARAM)MAKELONG(0,100));
SendMessage(sliderConLo,TBM_SETPOS, (WPARAM)1,0);
SendMessage(sliderConHi,TBM_SETPOS, (WPARAM)1,0);
}
break;
case WM_HSCROLL:
{
}
Please help,thanks.