One of my customers uses the standard Windows flat scroll bars introduced in MSIE 4 inside the list/grid controls in his VB6 app. Now he wants to implement a dark theme in his app and needs to colorize these flat scroll bars respectively. The FlatSB_SetScrollProp function allows us to change color parameters of flat scroll bars. It was not a problem to specify the background color with the WSB_PROP_HBKGCOLOR/WSB_PROP_VBKGCOLOR values for the shaded shaft, but we need to change other colors - the background of the scroll box, the color of arrows on the buttons, etc. FlatSB_SetScrollProp provides us with the ability to specify a custom palette for the scroll bars with the WSB_PROP_PALETTE value, but I can't find any working sample in the Internet showing how to do that. Some examples I found were this and this, but as I could conclude from those forum discussions, they do not work. Can anybody provide a working sample for FlatSB_SetScrollProp with WSB_PROP_PALETTE (preferably for VB6)?
↧