How can I create a "beautiful" trackbar?

  • Hi, I want to creat a trackbar, which is not the standard one. For now I'm using:


    .h file:


    CSliderCtrl TrackBar_Leistung;


    -cpp file:


    TrackBar_Leistung.CreateEx(TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | TBS_AUTOTICKS| TBS_VERT | TBS_BOTH | TBS_ENABLESELRANGE,
    CRect(180, 90, 230, 290), this, IDC_TRACKBAR_LEISTUNG);
    TrackBar_Leistung.SetRange(min,max);
    TrackBar_Leistung.SetPos(current_pos);
    TrackBar_Leistung.SetSelection(min+10, max-10);


    this works, but I have an ugly trackbar. I want something with color for examle. Is there an other class than CSliderCtrl I can use in WinCE or something else?

  • Hello you can program you own control, most flexible may be to derivate it from CWnd. But this is lot of work and i suggest you will find a solution in the www e.g. under http://www.codeguru.com.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.