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. transparent toolbarbuttons,please help!

transparent toolbarbuttons,please help!

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
5 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.
  • S Offline
    S Offline
    schaereran gmx net
    wrote on last edited by
    #1

    i made a toolbar, that has a gradient effect (as in office2003) but now, the toolbaricons who are on the toolbar do not look cool on the gradientbackground, because they are not transparent! that means i still see the gray color who surrounds the symbols. any idea how to solve this problem??? i really read a lot about the topic, but found no solution! i also would manage to change this gray color to any other color (set it as background color) but this does not help me, because my background has no fix color, its a gradient! thanx for any help!!!! andreas

    D 1 Reply Last reply
    0
    • S schaereran gmx net

      i made a toolbar, that has a gradient effect (as in office2003) but now, the toolbaricons who are on the toolbar do not look cool on the gradientbackground, because they are not transparent! that means i still see the gray color who surrounds the symbols. any idea how to solve this problem??? i really read a lot about the topic, but found no solution! i also would manage to change this gray color to any other color (set it as background color) but this does not help me, because my background has no fix color, its a gradient! thanx for any help!!!! andreas

      D Offline
      D Offline
      Dominik Reichl
      wrote on last edited by
      #2

      Have a look at this article: http://www.codeproject.com/docking/bitmaptoolbar.asp[^] Here you can define a RGB color which will be used as transparency mask. -Dominik


      _outp(0x64, 0xAD); and __asm mov al, 0xAD __asm out 0x64, al do the same... but what do they do?? ;)

      S 1 Reply Last reply
      0
      • D Dominik Reichl

        Have a look at this article: http://www.codeproject.com/docking/bitmaptoolbar.asp[^] Here you can define a RGB color which will be used as transparency mask. -Dominik


        _outp(0x64, 0xAD); and __asm mov al, 0xAD __asm out 0x64, al do the same... but what do they do?? ;)

        S Offline
        S Offline
        schaereran gmx net
        wrote on last edited by
        #3

        hy, thanx for the link, unfortunately, when i compile this project and run it, the icons are not transparent, it looks excactly as in the project i worked. i work with .NET2003 may this be the problem?

        S 1 Reply Last reply
        0
        • S schaereran gmx net

          hy, thanx for the link, unfortunately, when i compile this project and run it, the icons are not transparent, it looks excactly as in the project i worked. i work with .NET2003 may this be the problem?

          S Offline
          S Offline
          schaereran gmx net
          wrote on last edited by
          #4

          it was the maskcolor, now i changed it to RGB(192,192,192) and now it workes!

          S 1 Reply Last reply
          0
          • S schaereran gmx net

            it was the maskcolor, now i changed it to RGB(192,192,192) and now it workes!

            S Offline
            S Offline
            schaereran gmx net
            wrote on last edited by
            #5

            the code looks very complicated to me, isnt there a simpler solution for making a bitmap transparent?? i cant use this code!

            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