R.Wieser
2024-09-30 19:11:50 UTC
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/nf-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. :-)
Regards,
Rudy Wieser
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/nf-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. :-)
Regards,
Rudy Wieser