Re: OLEPICTURE: Initialize [orig|himetric][Width|Height] for PICTYPE_ICON case
29 Mar
2005
29 Mar
'05
3:02 p.m.
Alex VillaciĀs Lasso <a_villacis(a)palosanto.com> writes:
You are right. I did a copy&paste from the SerializeIcon code. What do you think about this patch?
Better, but note that there is a twist with GetIconInfo, if the icon is monochrome the color bitmap is 0 and you then need to get the info from hbmMask and divide the height by 2 (you can always count on Microsoft to design clean and intuitive APIs...) You also need to delete the bitmaps when done. Note also that GetDC(0) is preferable to CreateCompatibleDC, it avoids creating a new DC just to delete it again. -- Alexandre Julliard julliard(a)winehq.org
7563
Age (days ago)
7563
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard