문제

I have a win32 API, developed in c++ and i can't find any useful information regarding how can i change the background color of a Trackbar component in windows Vista and above?

I am looking for a equivalent to .NET attribute called BackColor.

도움이 되었습니까?

해결책

Winforms implements it by handling WM_CTLCOLORSTATIC for a TrackBar control. The example code in the linked SDK article should do the trick.

다른 팁

Not done that one before, but try using NM_CUSTOMDRAW for trackbar and then setting the background brush and text colour of the DC for that control when its being drawn (probably in the CDRF_NOTIFYPOSTERASE stage).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top