One to many mask in image list

Adam Berridge 21 Reputation points
2020-12-15T13:33:30.553+00:00

Is is possible to have one mask for multiple bitmaps in an image list i.e. use the same mask for all the bitmaps or does ImageList_AddMasked create a separate mask for each bitmap?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,523 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Drake Wu - MSFT 991 Reputation points
    2020-12-16T02:49:04.727+00:00

    Hi, @Adam Berridge Yes. You could use ImageList_AddMasked to create a separate mask for each bitmap, like this official win32 sample.


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

  2. Adam Berridge 21 Reputation points
    2020-12-16T11:01:44.933+00:00

    I meant create one mask for several bitmaps rather than several masks for several bitmaps.