在资源里面import一个新的图标,然后删除原来的那个,记下它的id并把id付给你的新图标。OK!!!

解决方案 »

  1.   

    LoadIcon()。CWinApp::LoadIcon 
    HICON LoadIcon( LPCTSTR lpszResourceName ) const;HICON LoadIcon( UINT nIDResource ) const;Return ValueA handle to an icon if successful; otherwise NULL.ParameterslpszResourceNamePoints to a null-terminated string that contains the name of the icon resource. You can also use a CString for this argument.nIDResourceID number of the icon resource.ResLoads the icon resource named by lpszResourceName or specified by nIDResource from the executable file. LoadIcon loads the icon only if it has not been previously loaded; otherwise, it retrieves a handle of the existing resource. You can use the LoadStandardIcon or LoadOEMIcon member function to access the predefined Windows icons.
      

  2.   

    你如果是说换掉现成应用程序的图标的话,用EXE的资源编辑软件,推荐用EXEScope,这个软件很好找(很有名),用这个软件的Import功能就可以把图标换掉。