keyongtech


  keyongtech > vc.* > vc.mfc

 #1  
04-17-04, 12:39 AM
Abhijit Patait
I have a CScrollView derived view in an MFC application, and I want to
detect when the user clicks on the right scrolling button of the
scrollbar (not the mouse). I need to do this so that I want to
increase the scroll size if the user wishes to go beyond the current
scrolling range.

How can I do this?

Thanks in advance for your help,
Abhijit
 #2  
04-17-04, 02:56 AM
Scott McPhillips [MVP]
Abhijit Patait wrote:
> I have a CScrollView derived view in an MFC application, and I want to
> detect when the user clicks on the right scrolling button of the
> scrollbar (not the mouse). I need to do this so that I want to
> increase the scroll size if the user wishes to go beyond the current
> scrolling range.
>
> How can I do this?
>
> Thanks in advance for your help,
> Abhijit


Add a message handler to your view for WM_HSCROLL. Your message handler
must call CScrollView::OnHScroll if you want it to continue working
normally.
Similar Threads
Detecting if a combo box has a horizontal scrollbar

Is there any way to determine whether a combo box has a horizontal scroll bar? I have tried querying the style, but combo boxes turn off the WS_HSCROLL style bit during...

Detecting Windows Scrollbar End Position...!

Hello to all, I'm using the HScrollBar Control in one of my apps. Now the problem is how to detect that when did the scrollbar reached its right end or left end.? Please...

Detecting the appearance of a scrollbar in a listview

I have a listviw with the column default widths adjusted to fill the entire width without any scroll bars. If there are enough items added to the list that a vertical scroll...

can't get scrollbar to come up -- CScrollView

I am new to MFC and I am trying to get a simple app working with a scrollable view. I have put in the call to SetScrollSizes in the OnInitialUpdate method. I'm still not...

IE6 single click in scrollbar yields double click result

Am using XP Home, IE 6 w/ SP2, MS Wireless Optical Mouse Blue, point32 driver-version 5.0.174.0, mouclass driver- version 5.1.2600.1106 (xpsp 1.020828-1920). Whenever I...


All times are GMT. The time now is 05:42 PM. | Privacy Policy