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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to use standard bitmaps in a toolbar

How to use standard bitmaps in a toolbar

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
5 Posts 3 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.
  • F Offline
    F Offline
    Franken
    wrote on last edited by
    #1

    Hi all, I would like to create a toolbar with standard bitmaps like a play, record and a pause button but I do not know where I can find these bitmaps or how I can use these. Could somebody give me a hint? Thanks.

    K N 2 Replies Last reply
    0
    • F Franken

      Hi all, I would like to create a toolbar with standard bitmaps like a play, record and a pause button but I do not know where I can find these bitmaps or how I can use these. Could somebody give me a hint? Thanks.

      K Offline
      K Offline
      kitty5
      wrote on last edited by
      #2

      what I've done in the past is open up the tool bar and draw what you'd like for each button. you can adjust the size of the toolbar (length and width) by going in to your ".rc" and looking for: ///////////////////////////////////////////////////////////////////////////// // // Toolbar // IDR_MAINFRAME TOOLBAR 45, 45 the "45, 45" are the length and width of the toolbar

      Kitty5

      F 1 Reply Last reply
      0
      • K kitty5

        what I've done in the past is open up the tool bar and draw what you'd like for each button. you can adjust the size of the toolbar (length and width) by going in to your ".rc" and looking for: ///////////////////////////////////////////////////////////////////////////// // // Toolbar // IDR_MAINFRAME TOOLBAR 45, 45 the "45, 45" are the length and width of the toolbar

        Kitty5

        F Offline
        F Offline
        Franken
        wrote on last edited by
        #3

        Thank you Kitty5, but there should be a way to use all these standard bitmaps. I think they are somewhere in the system32 folder in windows xp. I don't like to redraw these icons if they already exist. Yes, it is easy for such simple bitmaps like a green triangle as play button or a red circle as record button. But it becomes harder if you try to redraw e.g. this folder bitmap of the open icon.

        K 1 Reply Last reply
        0
        • F Franken

          Thank you Kitty5, but there should be a way to use all these standard bitmaps. I think they are somewhere in the system32 folder in windows xp. I don't like to redraw these icons if they already exist. Yes, it is easy for such simple bitmaps like a green triangle as play button or a red circle as record button. But it becomes harder if you try to redraw e.g. this folder bitmap of the open icon.

          K Offline
          K Offline
          kitty5
          wrote on last edited by
          #4

          this might help: ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vcresed/html/971c181b-40f5-44be-843d-677a7c235667.htm

          Kitty5

          -- modified at 9:29 Monday 24th July, 2006 also, those file folders, etc. are located in: C:\WINDOWS\system32\SHELL32.dll ... not sure how u'll get the bitmaps out of the dll file...

          1 Reply Last reply
          0
          • F Franken

            Hi all, I would like to create a toolbar with standard bitmaps like a play, record and a pause button but I do not know where I can find these bitmaps or how I can use these. Could somebody give me a hint? Thanks.

            N Offline
            N Offline
            normanS
            wrote on last edited by
            #5

            Use the brute force & pig ignorance solution - it's simple, easy to explain, and it works. And you don't have to think too much. Open an application which uses the icons you want on its toolbar (Windows accessories /Audio recorder, for example.) Press Alt-PrtScr to copy the application window image to clipboard. Paste the image into Windows Paint (or whatever graphics editor you choose) Copy the images of the toolbar buttons one by one, and paste into Resource editor for your toolbar.

            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