After spending a day with CFormView I finally got the scrollbars on CFormView to appear in the XP Style. I had a CFormView in a MDI app (and I tried an SDI app with the same results) that when I shrunk one of the child windows the scrollbars that automatically appeared were not drawn in the XP style. If I clicked on the slider or the arrow that portion of it would be redrawn in XP style but as soon as the child window size was changed they would be drawn in the old style again. This was VERY annoying. The fix turns out to be incredibly simple. I went into the resource editor and set the Vertical and Horizontal Scroll styles. Poof, everything worked like it was supposed to. With such a simple solution I almost feel like the day was wasted. But now I know.


You’re Welcome
Gald I could help!
Big Thanks
Gr8. i Infact tried all the options.i too wasted almost 1 full day.
Thanks
Thanks for the info! This is just the solution I needed.
omg thankyou! :) I was wondering how on earth I was gonna fix this. Im not quite sure what you mean but setting the scrollbars styles, but I set both Vertical Scrollbar and Horizontal Scrollbar to ‘true’ and it sorted it :D I guess that is what you meant though :P
[...] paint problem with XP theme – SDI You are not alone :-) Here’s a link to the solution: http://typedef.org/jcopenha/2005/06/…_on_cformview/ [...]