Salut!
Pour obtenir une icône pour une fenêtre:
mais "LoadImage" a besoin en 2ème paramètre du nom de l'icône à charger.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 HMODULE hDll=LoadLibrary("C:\\WINDOWS\\System32\\shell32.dll"); if(hDll==NULL)cout<<"ERROR hDll : "<<GetLastError()<<endl; HMODULE hDllIcon=GetModuleHandle("shell32.dll"); if(hDllIcon==NULL)cout<<"ERROR hDllIcon : "<<GetLastError()<<endl; wc.hIcon=LoadImage(hDllIcon,
Comment l'obtenir?
Sinon comment charger une icône sans connaître son nom?
Faut il vraiment effectuer tout ce processus pour charger une icône?
Merci.
Partager