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

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

  1. hofnof

    hofnof New Member

    Joined:
    Sep 29, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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.
    Thanks.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice