Two DC belongs two window. One of the two DC is a memory DC,and it has an DIB section: bmi.bmiHeader.biBitCount = 32; bmi.bmiHeader.biCompression = BI_RGB; so,why?
On Jul 24, 7:48 am, "susan" <none> wrote: > The same icon draws in two DC. One is more brightness than another. > so,why? An icon file can contain multiple representations of the same icon, for different bit depths, sizes etc. Depending on exactly how you draw the icon, Windows may be selecting the 'most appropriate' image for the properties of the DC. So, not only is is possible for the brightness to be different, in fact you might get a totally different image depending on which DC you draw into! Use an icon editor to view the contents of the icon file; you may find that different images have different brightness. Richard. http://www.rtrussell.co.uk/ To reply by email change 'news' to my forename.