Mainframe icon in MSDS 2005
-
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.
-
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.
Try doing it programaticaly using
SetClassLong()
andGCL_HICONSM
-
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.
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
-
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.
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?