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. The Lounge
  3. 24-bit Color Depth Toolbar Buttons

24-bit Color Depth Toolbar Buttons

Scheduled Pinned Locked Moved The Lounge
2 Posts 2 Posters 0 Views
  • 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.
  • J Offline
    J Offline
    Joseph Dempsey
    wrote on last edited by
    #1

    This main seem a little trivial but it is something I am having a problem with. Is there anything special you have to do to load a 24-bit image to use as a toolbar. I have tried a lot of diffent method and all I get is some black squares in place of the buttons. The only thing that works is to do a m_wndToolbar.GetToolbarCtrl().SetImageList(&m_images); SetButtons(nButtonIDs, 14); where m_images was created m_images.Create(IDB_TOOLBARBITMAP, 16,1, RGB(255,0,255)); but even this results in my images being set down to 16 color. Does anyone know if I am missing something important here or possiblly a way around this. Any help would be appreciated. Joe

    L 1 Reply Last reply
    0
    • J Joseph Dempsey

      This main seem a little trivial but it is something I am having a problem with. Is there anything special you have to do to load a 24-bit image to use as a toolbar. I have tried a lot of diffent method and all I get is some black squares in place of the buttons. The only thing that works is to do a m_wndToolbar.GetToolbarCtrl().SetImageList(&m_images); SetButtons(nButtonIDs, 14); where m_images was created m_images.Create(IDB_TOOLBARBITMAP, 16,1, RGB(255,0,255)); but even this results in my images being set down to 16 color. Does anyone know if I am missing something important here or possiblly a way around this. Any help would be appreciated. Joe

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Try reading this article: http://codeguru.earthweb.com/toolbar/HiColorToolbar.shtml It might help...

      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

      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups