how make make an image with system colors?
-
Well, the problem is I need to put a bitmap on ListCtrl header with non-rectangular shape. So edge-smoothing parts should be the same color that system uses for highlighted/pressed/free states. I'm using Windows XP and my application should depict colors correctly in any color theme (olive, silver or even classic Windows styles.)
-
Well, the problem is I need to put a bitmap on ListCtrl header with non-rectangular shape. So edge-smoothing parts should be the same color that system uses for highlighted/pressed/free states. I'm using Windows XP and my application should depict colors correctly in any color theme (olive, silver or even classic Windows styles.)
Have you looked at
GetSysColor()
?Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
-
Have you looked at
GetSysColor()
?Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
And how can it help me? I need to put already prepared image but not draw it myself. Ok then let's formulate the task a little different: I've set these unnecessary parts' colors to transparent but they match system (window) colors only when being in unfocused state. I need them to be depicted correctly when control is focused/highlighted too. I guess my explanation is fine.