Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using WM_HSCROLL with a child dialog
#2
Member function ChildDialog.__DlgProc
Code:
Copy      Help
,ScrollWindowEx hDlg ppos-pos 0 0 0 0 0 SW_SCROLLCHILDREN|SW_ERASE|SW_INVALIDATE

Also change this code (here is unchanged)
Member function ChildDialog.Message
Code:
Copy      Help
,if(r.bottom<rc.bottom)
,,SCROLLINFO si.cbSize=sizeof(si)
,,si.fMask=SIF_RANGE|SIF_PAGE
,,si.nMax=rc.bottom
,,si.nPage=r.bottom
,,SetScrollInfo m_hdlgc SB_HORZ &si 0
,,m_scmax=si.nMax-si.nPage
,,m_scpage=si.nPage


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)