> converting a tuple with 3 int elements to COLORREF Have you managed it?
Google tells me that COLORREF is a Windows 32 bit entity which encodes each color in 8 bits. So if you have a tuple with 3 ints, you may have to shift them to the right position and then join them into one 32 bit value. For shift you can use shl() or multiply with 256. (well maybe better not multiply, as that may do sign extend.) And for joining you may use "or" operator or plain addition. For that to work I assume that in your tuple all 3 components contains values which all are smaller than 256. I hope you solved the task already yourself, if not let us know the exact content of your initial tuple.