(MFC C++) Can I set icon of resolution higher than 256*256 to MFC application?

Radhika 46 Reputation points
2022-12-30T07:17:13.633+00:00

I am currently working on an MFC C++ Application on Visual Studio version 2019.

The .ico file that gets created when we add an icon in resources contains the icons of different sizes in which the maximum resolution is 256x256, 32 bit.. Can we add an image type which has higher resolution than 256*256? If yes, how can I set this high resolution icon as icon of my application?

Working environment: Windows 10, Visual Studio - 16.11.15

Any help would be appriciated.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,537 questions
0 comments No comments
{count} votes

Accepted answer
  1. Minxin Yu 10,031 Reputation points Microsoft Vendor
    2022-12-30T08:39:06.313+00:00

    Hi, @Radhika

    Icons have a maximum size of 256x256 pixels.
    For your reference: Icons (Design basics)

    Best regards,

    Minxin Yu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful