Hey everyone. I was programming in Visual c++ and I am using a win32 console application to display my output. However when I have a lot of output I do not get a scrollbar and I am unable to see previous output since it automatically scrolls down. How do I get a scroll bar on my win32 consol application?? Can someone please email me if you know. thank you.
I have a problem when trying to scroll a ListView with a Background bitmap. I am trying to make the scroll bar, shift the icons ( done automatically by the call CListView::OnHScroll(...)) AND the background map at the same time while keeping the icons at the same position with respect to the map.
My problem is that when I scroll, I get the amount of pixel I want to shift the map by, but that doesn't necessarily correspond to the exact position of the thumb in the scroll bar due to integer round up.
For example, my map is 577x121 pixels and the limit of the scroll bar is 153. When I scroll right, I want the offset (amount of pixels the map will be shifted by) to be 20 pixels right on the x axis, then the thumb should be located at 20/577 of the scroll bar limit ( 153 ). But since this calculation will get a decimal value (153*20/577=5.3033), it will be round up to the closest integer(5). That introduces a small difference (20/577 = 0.035 vs 5/153 =0.032) in the ratio of the Map coordinates vs scrollbar and after a while, the icons will be slighly shifted away from the map and they won't keep their correct coordinates with respect to the map.
Do you have any way I could handle this kind of problem?
We are facing problem while using the scrollbar. we have to show more than three MB bytes on the screen. But maximum length of the Scrollbar is 32767. How to extend the scrollbar?. Or any other option is available for displaying large amount of data in single view?
Refer to the document about scrollbar control and the Flat scroll bar in msdn, we can't change background color of it but the shaft color.
When browsing in internet, some sites made the scrollbar's color changed in IE. What kind of scrollbar is it? Could I use it in Win32 programming as a control?
I hope someone can help me to make a dialog which have several vertical scroll bars on the same page I can understand to use one scrollbar but i am unsure to work with several scrollbars..
anyway, I need some help from you
I need to create a new scrollbar class that reacts in the following manner. When a user clicks the middle mouse button somewhere on the scrollbar, the thumb will automatically scroll to that position. I've managed to
come up with a solution but this solution requires that I know the client area of the scrollbar. I can obtain this but need to condsider the size of the arrows in order for my calculations to work. Could anyone please tell me how big the scrollbar arrows are - a percentage of the whole client area?
I'm using three scroll bars in a COM component, and they're relatively easy to identify from the lParam parameter to the OnHScroll handler function (lParam is the m_hWnd of the control that generated the message). What's really bizarre is that no matter what I set as the maximum value in range (using SCROLLINFO and SetScrollInfo), I can only get a maximum position value that's 2 less than the maximum I provided to set the range. What's going on here? Arrow clicks, track clicks (page), and dragging all work fine for 0..(n-2) when I define a range of min=0 and max=n.
If I have 2 or more horizontal scrollbars in the same
dialog box, in the function OnHScroll(...),
how do i identify exactly which scrollbar is
being clicked on by the user?
I know that the OnHScroll(..) is sufficient to move
either scrollbar back and forth, but I the individual scrollbar affects other variables in the dialog
differently, so that's why I need to identify which
one is being dragged or clicked on.