Home > Software engineering >  How to add multiple scrollbar
How to add multiple scrollbar

Time:11-01

I to add three vertical scroll bar, don't know how to write a message function

CodePudding user response:

Add WM_VSCROLL message

In afx_msg void OnVScroll (UINT nSBCode, UINT nPos, CScrollBar * pScrollBar) if pScrollBar==NULL is the default window scroll bar, the other is the handle to the scroll bar control

CodePudding user response:

CodePudding user response:

reference 1st floor zgl7903 response:
add WM_VSCROLL message

In afx_msg void OnVScroll (UINT nSBCode, UINT nPos, CScrollBar * pScrollBar) if pScrollBar==NULL is the default window scroll bar, the other is a handle to the scroll bar control


I have three scroll bars, add WM_VSCROLL message after sending a message which is how to distinguish between the scroll bar, how to distinguish from pScrollBar scroll bar
  • Related