Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. using transparent GIFs for toolbar buttons

using transparent GIFs for toolbar buttons

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    danginkgo
    wrote on last edited by
    #1

    I used bitmaps for toolbar buttons. Now I need to use background transparent images for those buttons. I have the background transparent GIF images. Can I obtain background transparent BMPs? How can I use the GIFs for the toolbar buttons?

    danginkgo

    I 1 Reply Last reply
    0
    • D danginkgo

      I used bitmaps for toolbar buttons. Now I need to use background transparent images for those buttons. I have the background transparent GIF images. Can I obtain background transparent BMPs? How can I use the GIFs for the toolbar buttons?

      danginkgo

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      I can answer part of your question, at least. If you look at the docs for LoadImage, one of the flags is: LR_LOADMAP3DCOLORS, which replaces set colours with your systems (eg) dialog face colour. Alternatively, ImageList_AddMasked has a "treat this colour as transparent" option you could uses. So, you could make a bitmap using bright pink as the background, then use that as transparent. Assuming you're not making a Barbie themed app, of course... Iain.

      Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

      D 1 Reply Last reply
      0
      • I Iain Clarke Warrior Programmer

        I can answer part of your question, at least. If you look at the docs for LoadImage, one of the flags is: LR_LOADMAP3DCOLORS, which replaces set colours with your systems (eg) dialog face colour. Alternatively, ImageList_AddMasked has a "treat this colour as transparent" option you could uses. So, you could make a bitmap using bright pink as the background, then use that as transparent. Assuming you're not making a Barbie themed app, of course... Iain.

        Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

        D Offline
        D Offline
        danginkgo
        wrote on last edited by
        #3

        Thanks, I'll try ;)

        danginkgo

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups