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. Hiding ScrollBars

Hiding ScrollBars

Scheduled Pinned Locked Moved C / C++ / MFC
questionlearning
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.
  • R Offline
    R Offline
    raybert
    wrote on last edited by
    #1

    I am using a child frame window to display a view. The child frame window can be resized and when the frame is made smaller than the view scroll bars are appearing and ruining the effect that I want to achieve. The view was created in the resource editor and is of type CFormView. The frame is of type CMDIChildWnd. I have tried a bunch of the following combinations and this is where I am at... ModifyStyle(WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_SYSMENU | WS_THICKFRAME | WS_CAPTION | WS_BORDER | WS_HSCROLL, 0, SWP_NOMOVE); ModifyStyleEx(WS_EX_STATICEDGE | WS_EX_RIGHTSCROLLBAR, 0, SWP_NOMOVE); Doesn't work Any insight???

    J 1 Reply Last reply
    0
    • R raybert

      I am using a child frame window to display a view. The child frame window can be resized and when the frame is made smaller than the view scroll bars are appearing and ruining the effect that I want to achieve. The view was created in the resource editor and is of type CFormView. The frame is of type CMDIChildWnd. I have tried a bunch of the following combinations and this is where I am at... ModifyStyle(WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_SYSMENU | WS_THICKFRAME | WS_CAPTION | WS_BORDER | WS_HSCROLL, 0, SWP_NOMOVE); ModifyStyleEx(WS_EX_STATICEDGE | WS_EX_RIGHTSCROLLBAR, 0, SWP_NOMOVE); Doesn't work Any insight???

      J Offline
      J Offline
      Jose Lamas Rios
      wrote on last edited by
      #2

      raybert wrote: when the frame is made smaller than the view scroll bars are appearing and ruining the effect that I want to achieve. What is that effect? You might handle WM_SIZE messages in your view and call SetScrollSizes from the corresponding OnSize function. But what to do exactly might depend on what you are trying to achieve. -- jlr http://jlamas.blogspot.com/[^]

      R 1 Reply Last reply
      0
      • J Jose Lamas Rios

        raybert wrote: when the frame is made smaller than the view scroll bars are appearing and ruining the effect that I want to achieve. What is that effect? You might handle WM_SIZE messages in your view and call SetScrollSizes from the corresponding OnSize function. But what to do exactly might depend on what you are trying to achieve. -- jlr http://jlamas.blogspot.com/[^]

        R Offline
        R Offline
        raybert
        wrote on last edited by
        #3

        Thank you for your response. I am actually asking this question for a co-worker so I needed to find out what effect he wanted. Basically, it is whenever the child window is resized to a smaller size he does not want the vertical or horizontal scrollbars to appear. I hope that makes some sense.

        J 1 Reply Last reply
        0
        • R raybert

          Thank you for your response. I am actually asking this question for a co-worker so I needed to find out what effect he wanted. Basically, it is whenever the child window is resized to a smaller size he does not want the vertical or horizontal scrollbars to appear. I hope that makes some sense.

          J Offline
          J Offline
          Jose Lamas Rios
          wrote on last edited by
          #4

          raybert wrote: I am actually asking this question for a co-worker raybert wrote: it is whenever the child window is resized to a smaller size he does not want the vertical or horizontal scrollbars to appear raybert wrote: I hope that makes some sense. Not much more than the original question, but never mind. If your co-worker is interested, tell him/her to post him/herself to the forum, an explain a bit more. -- jlr http://jlamas.blogspot.com/[^]

          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