Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.comp.os.windows-xp    |    Actually wasn't too bad for a M$-OS    |    17,273 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 16,976 of 17,273    |
|    Newyana2 to R.Wieser    |
|    Re: ImageList_GetImageInfo - alter the b    |
|    30 Sep 24 15:41:57    |
      XPost: alt.windows7.general, comp.os.ms-windows.programmer.win32       From: newyana@invalid.nospam              On 9/30/2024 3:11 PM, R.Wieser wrote:       > Hello all,       >       > Using XPsp3.       >       > I was playing with the idea to dynamically alter the contents of an       > ImageList, and found the       > https://learn.microsoft.com/en-us/windows/win32/api/commctrl/n       -commctrl-imagelist_getimageinfo       > function, which says :       >       > "The information in this structure can be used to *directly* manipulate the       > bitmaps for the image"       >       > (bolding mine).       >       > I've been trying to think of how that is possible - the bitmaps cannot be       > selected into a memoryDC - and to google information about how that would       > work, but came up empty.       >       > Question:       > Does anyone know what "directly manipulate the bitmaps" method MS is       > referring to in the above ?       >       > Remark:       > I already thought of and written another way to do what I want, but would       > like to know how the above works. Who knows, their (MS) method might be       > simpler. :-)       >               I've never used an ImageList, but the docs say GetImageInfo returns       an ImageInfo structure, which includes an hBitmap. With that you can       call things like GetDIBits, SetDIBits, etc.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca