XP Style Scrollbars on CFormView
时间:2011-04-16 来源:ncistcn
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.
http://typedef.org/jcopenha/2005/06/07/xp_style_scrollbars_on_cformview/