Scrollbar färben???
-
hi,
meine Listbox hat eine Scrollbar und ich wollt fragen,
wie ich das die Scrollbarfarbe ändern kann.
ich weiß zwar das es die WM_CTLCOLORSCROLLBAR message
gibt, aber mit der funkz irgend wie nicht???Danke!
-
Aufmerksames Lesen hilft:
http://msdn.microsoft.com/en-us/library/windows/desktop/bb787573(v=vs.85).aspxThe 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
Siehe also: "flat scroll bar functions":
http://msdn.microsoft.com/en-us/library/windows/desktop/bb775429(v=vs.85).aspxund dort: FlatSB_SetScrollProp
-
Hallo Martin
Wie wird das denn ab Version 6.0 dann laufen ?
Flat scroll bar functions are implemented in Comctl32.dll versions 4.71 through 5.82. Comctl32.dll versions 6.00 and higher do not support flat scroll bars.
siehe auch:
Verwenden von visuellen Stilen in Windows XP
http://msdn.microsoft.com/de-de/library/ms997646.aspx
... die fundamentalste Änderung ist, dass das Ändern der Darstellung von Steuerelementen in einem Fenster unterstützt wird.
Dann habe ich noch diese Ausssage gefunden:
Remember that the Flat SB control is not supported on WinXP and later, so nothing happens there.
http://www.codeproject.com/Messages/3662948/Re-Why-FlatSB-is-useless-in-WTL-InitializeFlatSB-F.aspx
-
Dann würde ich sagen, dass Du keine Kontrolle mehr über eingebettete Scrollbars hast und deren Farbe auch nicht manipulieren kannst, weil das Theme ausschließlich dafür verantwortlich ist, wie das eben bei anderen Controls (z.B. Group-Box) auch der Fall ist.