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. Mainframe icon in MSDS 2005

Mainframe icon in MSDS 2005

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestionannouncement
4 Posts 4 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.
  • R Offline
    R Offline
    RalfPeter
    wrote on last edited by
    #1

    Hello, I am trying to change the icon in my main appln window from the default (MFC icon) to something else. Back in the days of the MSVC 6 version, there was an option to set the mainframe icon to 16x16 bits, which would do what I'm trying to accomplish. In v. 2005 there does not seem to be a way to change the icon from 32x32 to 16x16. Or is there? Can anyone help me w/ this? Thx, Ralf.

    ralf.riedel@usm.edu

    W M M 3 Replies Last reply
    0
    • R RalfPeter

      Hello, I am trying to change the icon in my main appln window from the default (MFC icon) to something else. Back in the days of the MSVC 6 version, there was an option to set the mainframe icon to 16x16 bits, which would do what I'm trying to accomplish. In v. 2005 there does not seem to be a way to change the icon from 32x32 to 16x16. Or is there? Can anyone help me w/ this? Thx, Ralf.

      ralf.riedel@usm.edu

      W Offline
      W Offline
      Waldermort
      wrote on last edited by
      #2

      Try doing it programaticaly using SetClassLong() and GCL_HICONSM

      1 Reply Last reply
      0
      • R RalfPeter

        Hello, I am trying to change the icon in my main appln window from the default (MFC icon) to something else. Back in the days of the MSVC 6 version, there was an option to set the mainframe icon to 16x16 bits, which would do what I'm trying to accomplish. In v. 2005 there does not seem to be a way to change the icon from 32x32 to 16x16. Or is there? Can anyone help me w/ this? Thx, Ralf.

        ralf.riedel@usm.edu

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        If your main frame's resources are loaded by LoadFrame(IDR_xxx) then create/edit an icon resource with the id == IDR_xxx and it will do WalderMort's suggestion for you. If the icon only has 32x32 size then the system will resize it when necessary. You can always add/remove other sizes to the icon resource. Mark

        1 Reply Last reply
        0
        • R RalfPeter

          Hello, I am trying to change the icon in my main appln window from the default (MFC icon) to something else. Back in the days of the MSVC 6 version, there was an option to set the mainframe icon to 16x16 bits, which would do what I'm trying to accomplish. In v. 2005 there does not seem to be a way to change the icon from 32x32 to 16x16. Or is there? Can anyone help me w/ this? Thx, Ralf.

          ralf.riedel@usm.edu

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          It's well-hidden in VC8. Right-click in the icon editor->Current icon image types->select a size

          --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ"); Ford, what's this fish doing in my ear?

          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