Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using WM_HSCROLL with a child dialog
#1
I have tried to change the WM_VSCROLL into a WM_HSCROLL however regardless of what I do the HSCROLL will move my page top to bottom instead of left to right. What am I doing wrong?


Attached Files
.qml   HSCROLLChildDialog[1].qml (Size: 10.02 KB / Downloads: 262)
#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
#3
Gintaras Wrote: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

I do not understand. If I leave this code alone then the macro works fine. If I change this code then the SCROLL bar will not show. Am I still missing something?
#4
Don't delete that code. Edit something in it, because now it is for vertical scrollbar.


Forum Jump:


Users browsing this thread: 1 Guest(s)