Old 7th February 2017, 12:19   #1
Kuppy
Junior Member
 
Join Date: Sep 2016
Posts: 32
Possible coloring scroll bar?

How can color a horizontal or vertical scroll bar with the color of the window?
Kuppy is offline   Reply With Quote
Old 7th February 2017, 13:49   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,558
It is probably not possible to change the color when Visual Styles are on using normal Windows messages/functions.

There is a WM_CTLCOLORSCROLLBAR message but it only changes the background and does not work with most scrollbars:

Quote:
The WM_CTLCOLORSCROLLBAR message is used only by child scroll bar controls. Scrollbars attached to a window (WS_SCROLL and WS_VSCROLL) do not generate this message. To customize the appearance of scrollbars attached to a window, use the flat scroll bar functions.
You can read about flat scrollbars @ https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx but it is not going to give you the results you are looking for.

To actually get what you want you have to use the SkinnedControls_plug-in or create a custom plug-in and do the drawing yourself, https://www.codeproject.com/Articles...ibrary-version can probably help you out.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump