Ok, it can be made by using LoadImage with the appropriate xDesired and yDesired sizes, it loads the relevant icon.
As for the bad resolution I assumed it loads another one and draws by stretching. But this is not true, I tested it with different icons now. But I don't know why the resolution is such bad, it's pretty good in the icon designer. When I use png files it's perfect, but then I have to use different files for the different sizes….
Rgds,