One to many mask in image list

Adam Berridge 21 Reputation points

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,410 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Drake Wu - MSFT 991 Reputation points

    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

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