
VB6 Scrollbar control doesn't render in XP with new XP stlyle
Hi Jim,
I have not tried this myself ('caz I don't have an XP machine!), but I
believe there is a simple way to do this.
If you are OK with subclassing the controls, just subclass the
scrollbar control, and hook WM_PAINT, and in your hooked window proc,
just call DefWindowProc for WM_PAINT. Don't let this message pass to
the original window proc of the scrollbar.
I had used this trick to get VB scrollbars to paint correctly on Win2k
(I used to get white background in scrollbar).
Do let me know if this worked for you.
Warm Regards,
Vikram Lele
----------------------------------------------------------------------
Providing Components For Your Software Solutions
http://www.viklele.com
Quote:
> Hi Everybody,
> I have a long running VB6 project, and when the compiled application is run
> in WinXP, the VB6 Scrollbar is not drawn with the updated look of the new XP
> scrollbars. It looks just like a scrollbar does in previous Windows
> versions. What you end up with is a very mismatched looking screen, with
> some scrollbars using the XP color scheme, and some drawn in old battleship
> grey. I have VB6 with SP5. Does anybody know if there is an updated
> scrollbar control, or if Microsoft plans a broad update of it's VB6 custom
> controls to address this problem?
> Thank You, Jim Foskey