Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Back Room
  4. F'ing scrollbars!

F'ing scrollbars!

Scheduled Pinned Locked Moved The Back Room
c++question
10 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Roger Allen
    wrote on last edited by
    #1

    I have been trying to get a scroll bar that has a thumb that is proportional to the area that is shown as can be seen in just about every scroll bar in a windows application! Is it possible! No f'ing way! I have tried everything. I have copied MFC code that does just this. Does it do it for me? F!ck no! Arrrggghghhhh, if anybody can do this, share it with me before I kill everyone in my department! I am beginning to feel better....deep breaths...... Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.

    N S C 3 Replies Last reply
    0
    • R Roger Allen

      I have been trying to get a scroll bar that has a thumb that is proportional to the area that is shown as can be seen in just about every scroll bar in a windows application! Is it possible! No f'ing way! I have tried everything. I have copied MFC code that does just this. Does it do it for me? F!ck no! Arrrggghghhhh, if anybody can do this, share it with me before I kill everyone in my department! I am beginning to feel better....deep breaths...... Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      I don't understand your problem. If the scrollbar behavior you are looking for is exhibited on every other scrollbar then using the MFC library you should get that behavior. Quite obviously I'm missing something from you desired outcome.

      1 Reply Last reply
      0
      • R Roger Allen

        I have been trying to get a scroll bar that has a thumb that is proportional to the area that is shown as can be seen in just about every scroll bar in a windows application! Is it possible! No f'ing way! I have tried everything. I have copied MFC code that does just this. Does it do it for me? F!ck no! Arrrggghghhhh, if anybody can do this, share it with me before I kill everyone in my department! I am beginning to feel better....deep breaths...... Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.

        S Offline
        S Offline
        Simon Walton
        wrote on last edited by
        #3

        You sure that you are doing it right? MFC has nothing to assist you apart from CScrollViews. You have to resize the thumb yourself each time the main area is updated if you're doing things manually. I personally hate programs that don't resize the thumb appropriately *cough* Photoshop *cough*, because not only can you not judge the work area size, but it is also more difficult to grab the damn thing. I use Photoshop 5 at college all the time, and that is the only thing that I feel lets it down. Simon This message has not been scanned for viruses. It may destroy your hard drive. Not likely, but run a virus scanner through everything I write before you read it. Just in case. Sonork ID 100.10024

        R 2 Replies Last reply
        0
        • S Simon Walton

          You sure that you are doing it right? MFC has nothing to assist you apart from CScrollViews. You have to resize the thumb yourself each time the main area is updated if you're doing things manually. I personally hate programs that don't resize the thumb appropriately *cough* Photoshop *cough*, because not only can you not judge the work area size, but it is also more difficult to grab the damn thing. I use Photoshop 5 at college all the time, and that is the only thing that I feel lets it down. Simon This message has not been scanned for viruses. It may destroy your hard drive. Not likely, but run a virus scanner through everything I write before you read it. Just in case. Sonork ID 100.10024

          R Offline
          R Offline
          Roger Allen
          wrote on last edited by
          #4

          Simon Walton wrote: You have to resize the thumb yourself each time the main area is updated if you're doing things manually.* So how do you re-size the thumb? I have tried everything I can think off etc.... Stirrings of hope.... Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.

          S 1 Reply Last reply
          0
          • R Roger Allen

            Simon Walton wrote: You have to resize the thumb yourself each time the main area is updated if you're doing things manually.* So how do you re-size the thumb? I have tried everything I can think off etc.... Stirrings of hope.... Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.

            S Offline
            S Offline
            Simon Walton
            wrote on last edited by
            #5

            You need to call SetScrollInfo with SIF_PAGE. Take a look below. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/scrolbar_5ib6.asp Simon This message has not been scanned for viruses. It may destroy your hard drive. Not likely, but run a virus scanner through everything I write before you read it. Just in case. Sonork ID 100.10024

            1 Reply Last reply
            0
            • S Simon Walton

              You sure that you are doing it right? MFC has nothing to assist you apart from CScrollViews. You have to resize the thumb yourself each time the main area is updated if you're doing things manually. I personally hate programs that don't resize the thumb appropriately *cough* Photoshop *cough*, because not only can you not judge the work area size, but it is also more difficult to grab the damn thing. I use Photoshop 5 at college all the time, and that is the only thing that I feel lets it down. Simon This message has not been scanned for viruses. It may destroy your hard drive. Not likely, but run a virus scanner through everything I write before you read it. Just in case. Sonork ID 100.10024

              R Offline
              R Offline
              Roger Allen
              wrote on last edited by
              #6

              Success. Thanks for the insigh. I have now got it working. Of course the MSDN docs etc don;t tell you squat about it. I feel an artical coming on.... Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.

              S 1 Reply Last reply
              0
              • R Roger Allen

                Success. Thanks for the insigh. I have now got it working. Of course the MSDN docs etc don;t tell you squat about it. I feel an artical coming on.... Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.

                S Offline
                S Offline
                Shog9 0
                wrote on last edited by
                #7

                Roger Allen wrote: I feel an artical coming on.... Yeah, please do. I had never even noticed that i was not doing this until you pointed out that it is possible... Now i'm thinking i should... :-O --------

                This is what we've waited for This is it boys, this is War!

                --Shog9 --

                1 Reply Last reply
                0
                • R Roger Allen

                  I have been trying to get a scroll bar that has a thumb that is proportional to the area that is shown as can be seen in just about every scroll bar in a windows application! Is it possible! No f'ing way! I have tried everything. I have copied MFC code that does just this. Does it do it for me? F!ck no! Arrrggghghhhh, if anybody can do this, share it with me before I kill everyone in my department! I am beginning to feel better....deep breaths...... Roger Allen Sonork 100.10016 If I had a quote, it would be a very good one.

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #8

                  Hah !! you should see the scrollbars in the Oracle Enterprise Manager. Bring up a table, if you scroll down too far, the window goes funny colours and you will need to close and open it again to see your data at all. It's a bit of an aside, but I wish for Larry Ellison to die penniless for the piece of trash that is the Oracle UI. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002

                  L 1 Reply Last reply
                  0
                  • C Christian Graus

                    Hah !! you should see the scrollbars in the Oracle Enterprise Manager. Bring up a table, if you scroll down too far, the window goes funny colours and you will need to close and open it again to see your data at all. It's a bit of an aside, but I wish for Larry Ellison to die penniless for the piece of trash that is the Oracle UI. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    Christian Graus wrote: I wish for Larry Ellison to die penniless for the piece of trash that is the Oracle UI. Patience grasshopper, patience. ;P Mike Mullikin "Thank you America, every night I see increasingly stupid things happening here in Australia. Then you come along and top it." - Michael Martin - The Lounge :bob:

                    R 1 Reply Last reply
                    0
                    • L Lost User

                      Christian Graus wrote: I wish for Larry Ellison to die penniless for the piece of trash that is the Oracle UI. Patience grasshopper, patience. ;P Mike Mullikin "Thank you America, every night I see increasingly stupid things happening here in Australia. Then you come along and top it." - Michael Martin - The Lounge :bob:

                      R Offline
                      R Offline
                      Roger Wright
                      wrote on last edited by
                      #10

                      It's just a matter of time... :-D

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups