I have a c++ MFC MDI based project using visual studio 2013 community. Mainframe class is derived as class CMainFrame : public CMDIFrameWndEx
In mainframe class in pre-create, the scroll bar is set as below. cs.style |= WS_VSCROLL | WS_HSCROLL;
An OnVScroll
call back function has been added to receive a call back whenever the main frame scroll bar is moved. ON_WM_VSCROLL()
has been added to the message map in the mainframe. We find that OnVScroll
never gets called.
How do we enable callbacks on OnVScroll
whenever the user moves the scrollbar
. Any help will be very appreciated.
Thanks & Regards,
Rakesh