scrollbar - Handle window's scroll bar's mouse move (WinAPI) -


I have a window that has scroll bar styles, so its its scrollbars I should do something when mouse scroll bars Up, but the window movements of the window does not move. How can I control the Scrollbars Muesmov event?

thanks

API in Win32, 'MouseShow Event' in Scrollbars is not a The only message you get from the vertical scrollbar is WM_VSCROLL .

If you want special scrolling to your scrollbar, then you have to create sub-categories and override its management. As it is written in MSDN ():

If you want to change the standard format or function of the scroll bar, you can either create sub-squares of scroll bars on your window Or create a stand

edit

< Strong> editing

What am I trying to do, using the sidebar of the scrollbar to make my sub-window resizable? Is this possible?

Scrollbar is not the way to do it. Instead, define a window on the right side of the scrollbar (and high), just a few pixels wide. Set the cursor as the "resized" cursor for that window (so that users click and drag):

When a window gets a WM_LBUTTONDOWN message, You should start tracking the mouse, changing the shape of the mouse and reducing your control whenever the mouse moves when the window becomes WM_LBUTTONUP, then it should stop tracking and leave your control in its new shape. .

This will start on mouse-tracking functions. It is for drawing lines, but the process is similar.


Comments