Slider 没有自己的change 响应函数,需要在主窗口中添加:
1:
如果你的slider创建的时候是竖直的 ,让父窗口响应WM_VSCROLL
void CAcq_FtpDlg::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) { // TODO: Add your message handler code here and/or call default int m_int=m_FileType.GetPos();//取得当前位置值 if(m_int) { // m_StoreType.ModifyStyle(TBS_ENABLESELRANGE,0,0); m_StoreType.SetPos(1); m_StoreType.EnableWindow(false); //EnableScrollBar } else { m_StoreType.EnableWindow......
阅读全文