Home > Archive > Smartphone Developer Forum > October 2005 > Trackbar/Slider: Get notifications and change background color?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Trackbar/Slider: Get notifications and change background color?
|
|
| Bernd Muent 2005-10-24, 7:57 am |
| Hi,
1. If the position of a trackbar/slider is moved by the user: what does
exactly happen. It seems that there is send an WM_NOTIY. But how can I
evaluate in the message queue what exactly happend?
2. Does anybody here know how to change the background color of a
trackbar/slider? Is it possible at all?
I did not find out anythink with searching by google.
My idea is something like a derived class with all methods and
properties of TRACKBAR_CLASS but with overriding ON_ERASEBKGRND.
Thank you for tips, Bernd
--
BM Computer-Services, Bergmannstr. 66, 10961 Berlin
Webdesign, Internet, Layout und Grafik
Tel.: 030/20649400, mobil 0175/7419517, Fax: 030/20649401
Web: http://www.bmservices.de, eMail: kontakt@bmservices.de
| |
|
| Bernd,
I am not really sure how to change the color of the trackbar/slider. I
think that is taken from whatever theme is set under settings->home
screen.
I am also not 100% sure if this is right, but if you want to track
slider notifications, try trapping the WM_HSCROLL or the WM_VSCROLL
notifications.
Matt
| |
| Bernd Muent 2005-10-24, 7:02 pm |
| Matt schrieb:
> I am not really sure how to change the color of the trackbar/slider. I
> think that is taken from whatever theme is set under settings->home
> screen.
I found it out:
case WM_CTLCOLORSTATIC: return (LONG)CreateSolidBrush(MAZECOLOR);
> I am also not 100% sure if this is right, but if you want to track
> slider notifications, try trapping the WM_HSCROLL or the WM_VSCROLL
> notifications.
Yes, that's working, but I have to trap these messages from the
parentWindow!
B.
--
BM Computer-Services, Bergmannstr. 66, 10961 Berlin
Webdesign, Internet, Layout und Grafik
Tel.: 030/20649400, mobil 0175/7419517, Fax: 030/20649401
Web: http://www.bmservices.de, eMail: kontakt@bmservices.de
|
|
|
|
|