Button Control with Layered Transparent PNGs
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Button Control with Layered Transparent PNGs

  1. #1
    Join Date
    Sep 2010
    Posts
    66

    Button Control with Layered Transparent PNGs

    Is it possible to use a combination of PNG images (with transparency) as the graphic for a button control?

    For example, let's say I have 3 PNG files: main.png, transparent1.png, and transparent2.png. I would like the button graphic to appear as though main.png had been rendered first, followed by transparent1.png on top of it, and transparent2.png on top of that.

    I have a HBITMAP for each PNG file and am currently able to set the button graphic by sending a BM_SETIMAGE message.

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,071

    Re: Button Control with Layered Transparent PNGs

    No, it's not possible with standard button.
    Best regards,
    Igor

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center