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. Resizing Icons

Resizing Icons

Scheduled Pinned Locked Moved C / C++ / MFC
performance
3 Posts 2 Posters 1 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.
  • A Offline
    A Offline
    Andrew 0
    wrote on last edited by
    #1

    Is there any easy way to resize an icon to 16x16 or a custom size through a windows function. I can think of a few ways to do this the long way ( one involving the use stretchblt on memory DC's ). Basically I'm using these icons with my own subclassed buttons. Thanks.

    P 1 Reply Last reply
    0
    • A Andrew 0

      Is there any easy way to resize an icon to 16x16 or a custom size through a windows function. I can think of a few ways to do this the long way ( one involving the use stretchblt on memory DC's ). Basically I'm using these icons with my own subclassed buttons. Thanks.

      P Offline
      P Offline
      Paolo Messina
      wrote on last edited by
      #2

      Try this: hnewicon = CopyImage(holdicon, IMAGE_ICON, 16, 16, 0); where 16,16 are the new dimensions

      A 1 Reply Last reply
      0
      • P Paolo Messina

        Try this: hnewicon = CopyImage(holdicon, IMAGE_ICON, 16, 16, 0); where 16,16 are the new dimensions

        A Offline
        A Offline
        Andrew 0
        wrote on last edited by
        #3

        Thanks, exactly what i needed!

        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