Patch level :10.0 setup
Files correlati : Ricompilazione Demo : [ ] Commento : prova a riconoscere la versione di windows su cui sta installando ed eventualmente (win2000, win2003 termserv) usa come icona sul desktop quella a 256 colori git-svn-id: svn://10.65.10.50/trunk@19597 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
2e7870b0ec
commit
3b7e08a64f
@ -291,6 +291,16 @@ bool CampoSetup::CreateIcon(unsigned int csidl, const wxFileName& strExeFile, co
|
|||||||
}
|
}
|
||||||
|
|
||||||
strPath << strIcon;
|
strPath << strIcon;
|
||||||
|
|
||||||
|
//controlla se è in un sistema windows che richiede icone a 256 colori (win2000, win2003 termserv)
|
||||||
|
int nVersion = 0;
|
||||||
|
GetWinVer(NULL, 0, &nVersion);
|
||||||
|
if (nVersion == W2K || nVersion == W2003)
|
||||||
|
{
|
||||||
|
const int nPosCol = strIcon.Len() - 4;
|
||||||
|
strIcon.insert(nPosCol, "_256");
|
||||||
|
}
|
||||||
|
|
||||||
psl->SetIconLocation(strPath, 0);
|
psl->SetIconLocation(strPath, 0);
|
||||||
|
|
||||||
// Query IShellLink for the IPersistFile interface for saving the
|
// Query IShellLink for the IPersistFile interface for saving the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user