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. How can i make an toolbar icon 48x48 256 colour

How can i make an toolbar icon 48x48 256 colour

Scheduled Pinned Locked Moved C / C++ / MFC
c++questionhelp
12 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.
  • V vasmvr

    Hi all can someone help me? I want to make a toolbar with nice icon (48x48 256 colours) but when i copy my icon, the visual c++ make my icon 16 coluors. Is possible to have icon with 256 coluors? Thanks in advance

    N Offline
    N Offline
    Nishad S
    wrote on last edited by
    #2

    vasmvr wrote:

    when i copy my icon, the visual c++ make my icon 16 coluors.

    You are probably placing an icon of 256 colors in to 16 color icon. If so you have to add a new icon of 256 colors. It is available in menu, Image > New Device Image.

    - NS -

    V 1 Reply Last reply
    0
    • N Nishad S

      vasmvr wrote:

      when i copy my icon, the visual c++ make my icon 16 coluors.

      You are probably placing an icon of 256 colors in to 16 color icon. If so you have to add a new icon of 256 colors. It is available in menu, Image > New Device Image.

      - NS -

      V Offline
      V Offline
      vasmvr
      wrote on last edited by
      #3

      Thank you, but Where is menu, Image > New Device Image?

      N 1 Reply Last reply
      0
      • V vasmvr

        Thank you, but Where is menu, Image > New Device Image?

        N Offline
        N Offline
        Nishad S
        wrote on last edited by
        #4

        You just open the icon from resource. Could you?

        - NS -

        V 1 Reply Last reply
        0
        • N Nishad S

          You just open the icon from resource. Could you?

          - NS -

          V Offline
          V Offline
          vasmvr
          wrote on last edited by
          #5

          I can't see the menu image.....i'm using visual c++ 6.0.

          N V 2 Replies Last reply
          0
          • V vasmvr

            I can't see the menu image.....i'm using visual c++ 6.0.

            N Offline
            N Offline
            Nishad S
            wrote on last edited by
            #6

            ok... can you just show me the caption of the MSDEV? eg..MyDlgTestApp - Microsoft Visual C++ - [MyDlgTestApp.rc - IDR_MAINFRAME (Icon)]

            - NS -

            V 1 Reply Last reply
            0
            • V vasmvr

              I can't see the menu image.....i'm using visual c++ 6.0.

              V Offline
              V Offline
              vasmvr
              wrote on last edited by
              #7

              I undestand what you mean, but in this way i only import an Icon under Icon folder. I want this icon to the toolbar but if i copy to the toolbar it will change in 16 colours. or i do something wrong?

              N 1 Reply Last reply
              0
              • N Nishad S

                ok... can you just show me the caption of the MSDEV? eg..MyDlgTestApp - Microsoft Visual C++ - [MyDlgTestApp.rc - IDR_MAINFRAME (Icon)]

                - NS -

                V Offline
                V Offline
                vasmvr
                wrote on last edited by
                #8

                MyApp - Microsoft Visual C++ - [MyApp.rc - IDR_MYAPP [Italian (Italy)](Bitmap)] This is the caption

                1 Reply Last reply
                0
                • V vasmvr

                  I undestand what you mean, but in this way i only import an Icon under Icon folder. I want this icon to the toolbar but if i copy to the toolbar it will change in 16 colours. or i do something wrong?

                  N Offline
                  N Offline
                  Nishad S
                  wrote on last edited by
                  #9

                  vasmvr wrote:

                  want this icon to the toolbar but if i copy to the toolbar it will change in 16 colours.

                  I am not sure about how to directly use it... But you can show higher color resolution icons in the toolbar by using an imagelist. Sorry, I dont have a code sample to show you.

                  - NS -

                  V 1 Reply Last reply
                  0
                  • N Nishad S

                    vasmvr wrote:

                    want this icon to the toolbar but if i copy to the toolbar it will change in 16 colours.

                    I am not sure about how to directly use it... But you can show higher color resolution icons in the toolbar by using an imagelist. Sorry, I dont have a code sample to show you.

                    - NS -

                    V Offline
                    V Offline
                    vasmvr
                    wrote on last edited by
                    #10

                    Thanks, you mean to create a bitmap with all my icon and then extract each icon from it?

                    N 1 Reply Last reply
                    0
                    • V vasmvr

                      Thanks, you mean to create a bitmap with all my icon and then extract each icon from it?

                      N Offline
                      N Offline
                      Nishad S
                      wrote on last edited by
                      #11

                      You can add icons directly to imagelist

                      - NS -

                      V 1 Reply Last reply
                      0
                      • N Nishad S

                        You can add icons directly to imagelist

                        - NS -

                        V Offline
                        V Offline
                        vasmvr
                        wrote on last edited by
                        #12

                        Thank u NS, finally i did. Thank you very much for your help. -- modified at 3:09 Tuesday 4th September, 2007

                        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