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. CScrollView becomes too big on screen

CScrollView becomes too big on screen

Scheduled Pinned Locked Moved C / C++ / MFC
question
2 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.
  • J Offline
    J Offline
    Jerry Wang 0
    wrote on last edited by
    #1

    Hi. Another question, I currently call ResizeParentToFit(false); in my CView::OnDraw. It resizes my windows to fit the dimension of the image I draw inside it. However the CView screen becomes too big when I display an image that is larger than the screen, and user has no access to the lower/right borders of the window. What are the function calls I can do to make sure that the CView window's right and bottom border only becomes as big as the ParentWindow? :confused: Thanks!

    L 1 Reply Last reply
    0
    • J Jerry Wang 0

      Hi. Another question, I currently call ResizeParentToFit(false); in my CView::OnDraw. It resizes my windows to fit the dimension of the image I draw inside it. However the CView screen becomes too big when I display an image that is larger than the screen, and user has no access to the lower/right borders of the window. What are the function calls I can do to make sure that the CView window's right and bottom border only becomes as big as the ParentWindow? :confused: Thanks!

      L Offline
      L Offline
      lucy 0
      wrote on last edited by
      #2

      try these two functions: SetScrollSizes() MoveWindow()

      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