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)); }
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;
}
{
// 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));
}