Hi Victor,

Thank you for your answer, I have found the solution, the problem lied in comparing the lpNMCustomDraw->hdr.hwndFrom to each trackbar window instead to hBitmapThumb hBitmapChannel.