Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ dialog
I have created an icon 48x48 with 16 colors in vc++ 6.0 mfc dialog application. I got the icon in the executable file,
but I'm unable to show this icon shortcut on the Windows XP desktop.
Posted 28-Oct-10 18:22pm
Edited 28-Oct-10 18:23pm
JF201553.1K
v2
Comments
kjayalakshmi at 29-Oct-10 4:28am
   
i want icon tobe 48x48 with 16 colors only
Sauro Viti at 29-Oct-10 4:33am
   
The size of icons shown on the desktop is a setting of the desktop, then you cannot have your application icon to be shown as 48x48. What you can do is to change the desktop settings, but doing this all the icons on the desktop will be 48x48
kjayalakshmi at 29-Oct-10 5:23am
   
how can i create custom icon 32x32 pixels with more clarity

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Your icon file "res\icon.ico" should have the standard resolutions (16x16, 32x32) that may be needed for the Windows desktop. You can add them to your icon file by using one of the free icon editors from the internet.
  Permalink  
Comments
kjayalakshmi at 29-Oct-10 5:21am
   
i want icon to be 48x48 pixels only.
JF2015 at 29-Oct-10 5:23am
   
You cannot do this. Your icon should provide all the required resolutions. This has no effect on your application, it is just necessary so that windows can display your icon on the desktop

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 718
1 OriginalGriff 420
2 CPallini 385
3 George Jonsson 231
4 Richard Deeming 145
0 OriginalGriff 5,450
1 CPallini 4,500
2 Sergey Alexandrovich Kryukov 4,272
3 George Jonsson 3,057
4 Gihan Liyanage 2,445


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 29 Oct 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100