From: Timothy Dean on
When I use the app wizard in VS 2005 to create a simple SDI application
(change view to be a CFormView), the scrollbars on the form view don't seem
to paint properly. As you resize the main window, the scrollbars will flash
and initially paint with the XP theme and then repaint with the classic
view. Any ideas? Thanks.

Timothy Dean


From: Tom Serface on
I've never seen this happen. Did you do something to resize the view in an
OnSize routine or are you running under Vista?

Tom

"Timothy Dean" <my_email(a)this.com> wrote in message
news:OM8CmNrtIHA.1316(a)TK2MSFTNGP06.phx.gbl...
> When I use the app wizard in VS 2005 to create a simple SDI application
> (change view to be a CFormView), the scrollbars on the form view don't
> seem to paint properly. As you resize the main window, the scrollbars
> will flash and initially paint with the XP theme and then repaint with the
> classic view. Any ideas? Thanks.
>
> Timothy Dean
>

From: Timothy Dean on
I am running under XP. We have duplicated this on several XP machines.
Some generated their own apps with VS 2005, some just ran a version from my
machine. I have not added anything to the OnSize event. I simply generate
an MFC SDI app and change the views base class from CView to CFormView.
When the main frame is manually sized small enough to show the scrollbars,
the behavior is visible. Once the "classic view" scrollbars are visible, if
you click on the up or down arrow, the slider and up or down arrow button
are repainted as XP theme. Clicking the other arrow will also repaint it to
XP style. Resize the window again and they "flash" eventually going back to
"classic".

Timothy Dean


"Tom Serface" <tom.nospam(a)camaswood.com> wrote in message
news:F4C66E27-F04F-4DE2-B0D5-56BC5E15CF94(a)microsoft.com...
> I've never seen this happen. Did you do something to resize the view in
> an OnSize routine or are you running under Vista?
>
> Tom
>
> "Timothy Dean" <my_email(a)this.com> wrote in message
> news:OM8CmNrtIHA.1316(a)TK2MSFTNGP06.phx.gbl...
>> When I use the app wizard in VS 2005 to create a simple SDI application
>> (change view to be a CFormView), the scrollbars on the form view don't
>> seem to paint properly. As you resize the main window, the scrollbars
>> will flash and initially paint with the XP theme and then repaint with
>> the classic view. Any ideas? Thanks.
>>
>> Timothy Dean
>>
>


From: Seetharam on
You are not alone :-)

Here's a link to the solution:
http://typedef.org/jcopenha/2005/06/07/xp_style_scrollbars_on_cformview/

-SM
From: AliR (VC++ MVP) on
I have seen this, I don't think there is a cure.

AliR.


"Timothy Dean" <my_email(a)this.com> wrote in message
news:OM8CmNrtIHA.1316(a)TK2MSFTNGP06.phx.gbl...
> When I use the app wizard in VS 2005 to create a simple SDI application
> (change view to be a CFormView), the scrollbars on the form view don't
> seem to paint properly. As you resize the main window, the scrollbars
> will flash and initially paint with the XP theme and then repaint with the
> classic view. Any ideas? Thanks.
>
> Timothy Dean
>