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. General Programming
  3. C / C++ / MFC
  4. Question Regarding ScrollView

Question Regarding ScrollView

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsgame-devhardwarehelpquestion
4 Posts 2 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.
  • G Offline
    G Offline
    godspeed123
    wrote on last edited by
    #1

    Hi, I have made an OpenGL view embedded into a scrollview. I am trying to use SetScrollSizes function to set a proper Window size, but I dont understand how the values are found, I have many rows of rectangles shown in OpenGL, and I want to adjust the length of the scrollbar to accomodate the number of rows. I have used the following code SetScrollSizes( MM_TEXT, CSize( 100, totalNumOfRow*60 ) ); where 60 is the length of one rectangle showing on the screen. Any help would be greatly appreciated.

    L 1 Reply Last reply
    0
    • G godspeed123

      Hi, I have made an OpenGL view embedded into a scrollview. I am trying to use SetScrollSizes function to set a proper Window size, but I dont understand how the values are found, I have many rows of rectangles shown in OpenGL, and I want to adjust the length of the scrollbar to accomodate the number of rows. I have used the following code SetScrollSizes( MM_TEXT, CSize( 100, totalNumOfRow*60 ) ); where 60 is the length of one rectangle showing on the screen. Any help would be greatly appreciated.

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      godspeed123 wrote:

      I am trying to use SetScrollSizes function to set a proper Window size, but I dont understand how the values are found

      Paul DiLascia's DIBView Article[^] should help you

      led mike

      G 1 Reply Last reply
      0
      • L led mike

        godspeed123 wrote:

        I am trying to use SetScrollSizes function to set a proper Window size, but I dont understand how the values are found

        Paul DiLascia's DIBView Article[^] should help you

        led mike

        G Offline
        G Offline
        godspeed123
        wrote on last edited by
        #3

        Hi, Its about the SetScrollSize property that I dont understand, not the images. Sorry for the confusion.

        L 1 Reply Last reply
        0
        • G godspeed123

          Hi, Its about the SetScrollSize property that I dont understand, not the images. Sorry for the confusion.

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          He uses CScrollView to display the images so the code will show you how to manage the scrolling aspects, but whatever you say, I'm sure you are correct.

          led mike

          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