Home > Software engineering >  MFC button associated CListCtrl scroll bar
MFC button associated CListCtrl scroll bar

Time:01-22

CListCtrl scroll bar, now the default scroll bar, want to realize the page, by pressing the button for help

CodePudding user response:

Ask for help,

CodePudding user response:

Delivery WM_VSCROLL message
 
Void CdlgTDlg: : OnBnClickedButton1 ()
{
M_ListCtrl. PostMessage (WM_VSCROLL SB_PAGEUP, NULL);
}
Void CdlgTDlg: : OnBnClickedButton2 ()
{
M_ListCtrl. PostMessage (WM_VSCROLL SB_PAGEDOWN, NULL);
}



  • Related