how to scroll the text in richedit control in vc++,mfc
-
I have an richedit control.i set its multiline,vertical scroll property but while i scroll the mouse the text rich edit scroll does not scroll while on clicking of vertical bar text gets scrolled.but i want to scroll text in rich edit control on mousewheel command.
-
I have an richedit control.i set its multiline,vertical scroll property but while i scroll the mouse the text rich edit scroll does not scroll while on clicking of vertical bar text gets scrolled.but i want to scroll text in rich edit control on mousewheel command.
Use the MSH_MOUSEWHEEL event and wParam.... There are some macros in order to handle the roation: zDelta = (int) wParam; // wheel rotation xPos = LOWORD(lParam); // horizontal position of pointer yPos = HIWORD(lParam); // vertical position of pointer