A window can have scrollbars if the appropriate style bits are set. As it is scrolled, WM_VSCROLL and WM_HSCROLL messages are sent to the window. If I look at it with Spy++, I don't see any child windows (the scrollbars) I am making a fully user drawn window and would like to have non-standard looking scrollbars without the hastle of creating them from scratch. Spy++ lists these additional Scrollbar messages..
SBM_ENABLE_ARROWS, SBM_GETPOS, SBM_GETRANGE, SBM_GETSCROLLINFO, SBM_SETPOS, SBM_SETRANGE, SBM_SETRANGEREDRAW, SBM_SETSCROLLINFO
I suppose that I thought the scrollbars would be child windows that get these messages and would in turn send the WM_VSCROLL messages to it's parent. I can't seem to get Spy++ to log a single SMB_ message.
So what's the deal? I would ideally like to get device contexts to the different components of the scrollbar such as the thumb, slide and buttons. That way, I could draw them to match my form but keep the normal functionality.
Is this possible?