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. Loading OEM Icon's into a Dialog Template

Loading OEM Icon's into a Dialog Template

Scheduled Pinned Locked Moved C / C++ / MFC
c++questionlearning
2 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.
  • A Offline
    A Offline
    armentage
    wrote on last edited by
    #1

    Is there any way to use the standard Windows OEM icons in a Dialog Template resource? I'm using VC++6.0. When I add an Icon to a dialog, the dialog editor wants a path name to .ico file. I'd want to use the built in IDI_EXCLAMATION here (it's an alert dialog), rather than supply my own .ico file. You can load this icon by doing ::LoadIcon(0, IDI_EXCLAMATION), but there doesn't seem to be anyway to do this with the resource editor.

    D 1 Reply Last reply
    0
    • A armentage

      Is there any way to use the standard Windows OEM icons in a Dialog Template resource? I'm using VC++6.0. When I add an Icon to a dialog, the dialog editor wants a path name to .ico file. I'd want to use the built in IDI_EXCLAMATION here (it's an alert dialog), rather than supply my own .ico file. You can load this icon by doing ::LoadIcon(0, IDI_EXCLAMATION), but there doesn't seem to be anyway to do this with the resource editor.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Why do you need that icon resource in the resource editor? Wherever it is that you are going to display that icon, just call LoadIcon() as you have indicated.


      "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

      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