Icon problem [modified]
-
Hi, I want to change the icon of my application,so, i changed it in resource file and the exe created with new Icon itself.But my problem,after running the EXE, the system taskbar which shows the icon and application name...IN THAT THE ICON IS OLDER ONE.IT DOES NOT SHOW THE NEW ICON. I dont know wat to do.The res file and ICON in the Workspace,all shows the new Icon only.Even my EXE in Debug file also shows new Icon.But in system taskbar shows the older one. -- modified at 7:53 Wednesday 31st May, 2006
-
Hi, I want to change the icon of my application,so, i changed it in resource file and the exe created with new Icon itself.But my problem,after running the EXE, the system taskbar which shows the icon and application name...IN THAT THE ICON IS OLDER ONE.IT DOES NOT SHOW THE NEW ICON. I dont know wat to do.The res file and ICON in the Workspace,all shows the new Icon only.Even my EXE in Debug file also shows new Icon.But in system taskbar shows the older one. -- modified at 7:53 Wednesday 31st May, 2006
Do you use SetIcon_**
**_
whitesky
-
Hi, I want to change the icon of my application,so, i changed it in resource file and the exe created with new Icon itself.But my problem,after running the EXE, the system taskbar which shows the icon and application name...IN THAT THE ICON IS OLDER ONE.IT DOES NOT SHOW THE NEW ICON. I dont know wat to do.The res file and ICON in the Workspace,all shows the new Icon only.Even my EXE in Debug file also shows new Icon.But in system taskbar shows the older one. -- modified at 7:53 Wednesday 31st May, 2006
Sounds like you didn't change the 16x16 icon, so you're seeing the AppWizard-generated default.
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
-
Do you use SetIcon_**
**_
whitesky
-
Hi, I want to change the icon of my application,so, i changed it in resource file and the exe created with new Icon itself.But my problem,after running the EXE, the system taskbar which shows the icon and application name...IN THAT THE ICON IS OLDER ONE.IT DOES NOT SHOW THE NEW ICON. I dont know wat to do.The res file and ICON in the Workspace,all shows the new Icon only.Even my EXE in Debug file also shows new Icon.But in system taskbar shows the older one. -- modified at 7:53 Wednesday 31st May, 2006
have u changed both icons i.e 16x16 and 32x32 it seems that u have changed only 32x32 icon pls check it. but u can see if u r viewing the file list as icons (not details view) SaRath
"D on't blindly follow rules you read somewhere without verifying that it makes sense for your situation!" -
Till now i wont use SetIcon but the taskbar shows right icon,then now why it does not shows the new one.where the application takes the old icon.because i checked in all files there is no older icon.then how its possible?Pls clear my doubts.
Please see Michael Dunn answer and my guess 16x16 icon_**
**_
whitesky
-
Hi, I want to change the icon of my application,so, i changed it in resource file and the exe created with new Icon itself.But my problem,after running the EXE, the system taskbar which shows the icon and application name...IN THAT THE ICON IS OLDER ONE.IT DOES NOT SHOW THE NEW ICON. I dont know wat to do.The res file and ICON in the Workspace,all shows the new Icon only.Even my EXE in Debug file also shows new Icon.But in system taskbar shows the older one. -- modified at 7:53 Wednesday 31st May, 2006
1.Copy the Icon,which u want to assign to res folder of u r application.Follow these steps 2.if u r using VC6 ,In the project click on File->Open,then change the Open As option to Text and open the .rc file of u r application. if u r using Vc7 , right click on .rc file and open as Text file 3.Replace the IDR_MAINFRAME ICON DISCARDABLE "res\\OldIcon.ico" with IDR_MAINFRAME ICON DISCARDABLE "res\\NewIcon.ico" I have tested this. Here it is working fine. Appu.. "If you judge people, you have no time to love them."
-
Till now i wont use SetIcon but the taskbar shows right icon,then now why it does not shows the new one.where the application takes the old icon.because i checked in all files there is no older icon.then how its possible?Pls clear my doubts.
-
have u changed both icons i.e 16x16 and 32x32 it seems that u have changed only 32x32 icon pls check it. but u can see if u r viewing the file list as icons (not details view) SaRath
"D on't blindly follow rules you read somewhere without verifying that it makes sense for your situation!" -
Hi, I want to change the icon of my application,so, i changed it in resource file and the exe created with new Icon itself.But my problem,after running the EXE, the system taskbar which shows the icon and application name...IN THAT THE ICON IS OLDER ONE.IT DOES NOT SHOW THE NEW ICON. I dont know wat to do.The res file and ICON in the Workspace,all shows the new Icon only.Even my EXE in Debug file also shows new Icon.But in system taskbar shows the older one. -- modified at 7:53 Wednesday 31st May, 2006
Have you changed the function's parameter ,for example ,if you want show the new icon which ID is IDR_NEW on the dialog, you can modify the LoadIcon function . CTestIconDlg::CTestIconDlg(CWnd* pParent /*=NULL*/) : CDialog(CTestIconDlg::IDD, pParent) { //{{AFX_DATA_INIT(CTestIconDlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 // modify this sentense m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); m_hIcon = AfxGetApp()->LoadIcon(IDR_NEW); } echozeng ----> nose nose i love you