Hiding ScrollBars
-
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???
-
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???
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/[^]
-
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/[^]
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.
-
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.
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/[^]