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. Problem with colour in Resource Editor

Problem with colour in Resource Editor

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiographicshelplearning
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.
  • P Offline
    P Offline
    Pazzuzu
    wrote on last edited by
    #1

    Hi all, Iam changing the backGround colour of a bitmap. When I go to the "ResourceView" of my visual studio editor,Click on the bitmap,The bitmap is displayed. I wanted to add a new custom colour as the "colors" toolbar doesn't contain any colour,of interest to me. so I go to the "Image" menu & call "AdjustColours" to add my new custom colour.Using this colour I change the background of my bitmap & the colour is changed. Now When I run my application the customcolour which I added is not displayed in the bitmap as background. Iam using this bitmap as an image in my CTreeCtrl,which is created at runtime. I have my CTreeclass: public CTreeCtrl In the OnInitDialog,I do as follows: m_ImageList.Create(IDB_MRO_IMAGELIST, 16, 1, RGB(255, 255, 255))) m_wndTree.SetImageList(&m_ImageList, TVSIL_NORMAL); //m_wndTree is my class derived from CtreeCtrl Thanks...

    A 1 Reply Last reply
    0
    • P Pazzuzu

      Hi all, Iam changing the backGround colour of a bitmap. When I go to the "ResourceView" of my visual studio editor,Click on the bitmap,The bitmap is displayed. I wanted to add a new custom colour as the "colors" toolbar doesn't contain any colour,of interest to me. so I go to the "Image" menu & call "AdjustColours" to add my new custom colour.Using this colour I change the background of my bitmap & the colour is changed. Now When I run my application the customcolour which I added is not displayed in the bitmap as background. Iam using this bitmap as an image in my CTreeCtrl,which is created at runtime. I have my CTreeclass: public CTreeCtrl In the OnInitDialog,I do as follows: m_ImageList.Create(IDB_MRO_IMAGELIST, 16, 1, RGB(255, 255, 255))) m_wndTree.SetImageList(&m_ImageList, TVSIL_NORMAL); //m_wndTree is my class derived from CtreeCtrl Thanks...

      A Offline
      A Offline
      Alex_Y
      wrote on last edited by
      #2

      Did you load correct palette before you started adjusting color? If not load pallete. Menu/Image/Load palette. You need to find file *.pal which has 256 color. After you load it you will see all 256 color. The rest you doing correct. VS6 may not show all 256 colors but I am no sure. sorry if misslead you. :)

      P 1 Reply Last reply
      0
      • A Alex_Y

        Did you load correct palette before you started adjusting color? If not load pallete. Menu/Image/Load palette. You need to find file *.pal which has 256 color. After you load it you will see all 256 color. The rest you doing correct. VS6 may not show all 256 colors but I am no sure. sorry if misslead you. :)

        P Offline
        P Offline
        Pazzuzu
        wrote on last edited by
        #3

        Thanks for the reply From where Can I load the *.pal palette(Which one & from where)

        A 1 Reply Last reply
        0
        • P Pazzuzu

          Thanks for the reply From where Can I load the *.pal palette(Which one & from where)

          A Offline
          A Offline
          Alex_Y
          wrote on last edited by
          #4

          I just send file to your email 256palette.pal :)

          P 1 Reply Last reply
          0
          • A Alex_Y

            I just send file to your email 256palette.pal :)

            P Offline
            P Offline
            Pazzuzu
            wrote on last edited by
            #5

            Thanbks a lot....

            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