1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

win api - set proper app's icon size on desktop

Discussion in 'Win32' started by hofnof, Sep 29, 2010.

  1. hofnof

    hofnof New Member

    Sep 29, 2010
    Likes Received:
    Trophy Points:
    Hi All,
    i need some hint how to set the proper icon size of my exe when its places on desktop.
    So when I copy the .exe on desktop or create shortcut its icon becomes smudge because of its size.
    I've set in my windows class:
    wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICO_64)); //64x64 icon
    also did try in every size between 16x16 and 256x256 but seems that's not the way.
    the small icon size:
    wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_ICO_16)); //16x16
    scales fine for app windows and system try menu.
    Also i did try to put 32x32 and 48x48 icon as first in mt icon resourse, but same happens.
    How/where I can set desktop/shortcut icon size of my exe?
    Any hint is wellcome.

Share This Page