Re: Problem scrolling CControlBars docked in a CFrameWnd

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Gary Chanson (gchanson_at_No.Spam.TheWorld.net)
Date: 09/15/04


Date: Wed, 15 Sep 2004 13:17:59 -0400


"Jon Hill" <jhill@audiokinetic.com> wrote in message
news:6cb98b4b.0409150643.7c889550@posting.google.com...
>
> Thanks for your quick response.
>
> The problem I am having is that, although the window does scroll, and
> the dialog bars are all translated upwards as a group for a downward
> scroll, the area uncovered at the bottom is not repainted (it is a
> blank white space where I would expect the freshly scrolled-in dialog
> bars to be drawn) so this corresponds to your question, "you are
> getting a blank line on the trailing edge of the scroll region"
>
> I have read the useful passage you quoted above before, but it does
> not seem to work. I get the feeling I should write a small test app to
> see if maybe there is not some other variable introduced by our app
> framework.

    I'm not sure that I understand what you're trying to do. It sounds like
you have a bunch of controls that you want to move when you scroll the
window instead of something like text. If so, you don't want to use
ScrollWindow whose purpose is to move the image within the window to
minimize how much work you have to do to repaint the window when it scrolls.
Instead, you need to move each of the controls with MoveWindow or
SetWindowPos.

-- 
-GJC [MS Windows SDK MVP]
-Software Consultant (Embedded systems and Real Time Controls)
- http://www.mvps.org/ArcaneIncantations/consulting.htm
-gchanson@mvps.org


Relevant Pages

  • The window does not have scroll bars..
    ... The window does not have scroll bars.. ... 00442d8c pveterin.exe Graphics 2524 GDIError ... 004671dc pveterin.exe Controls 7039 TWinControl.HandleNeeded ...
    (alt.comp.lang.borland-delphi)
  • Re: Scrollbar thumbtrack doesnt scroll all the way
    ... SetWindowPos in regards to an embedded child window. ... Note also that OnSize is ... The size of the scroll bar in between is largely irrelevant to ... The correct value is to use nPos. ...
    (microsoft.public.vc.mfc)
  • Re: Scrollbar thumbtrack doesnt scroll all the way
    ... SetWindowPos in regards to an embedded child window. ... Note also that OnSize is ... The size of the scroll bar in between is largely irrelevant to ... The correct value is to use nPos. ...
    (microsoft.public.vc.mfc)
  • Re: GDI+ Custom Control
    ... I have actually done this already; my first MFC program was a medical data display and I ... First, I would treat each of the "tiles" as being a separate window, each a child window ... You scroll the tile. ... So there would be one "tile" for Heart ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Nested window question
    ... Lets call the parent window 'A' and the nested child 'B'. ... I want A's scroll barto scroll window B, ... you need to set the 'extended scroll requests' ... Window C which is the toolbar for Window A. ...
    (comp.sys.acorn.programmer)