Re: Problem scrolling CControlBars docked in a CFrameWnd
From: Gary Chanson (gchanson_at_No.Spam.TheWorld.net)
Date: 09/15/04
- Next message: Nathaniel: "editing boot.ini settings before windows loads."
- Previous message: JohnL: "Re: How to resize all the controls during runtime"
- In reply to: Jon Hill: "Re: Problem scrolling CControlBars docked in a CFrameWnd"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Nathaniel: "editing boot.ini settings before windows loads."
- Previous message: JohnL: "Re: How to resize all the controls during runtime"
- In reply to: Jon Hill: "Re: Problem scrolling CControlBars docked in a CFrameWnd"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|