Notify icon problem?
-
I have a notify icon. The
standard MFC icon for VS2003.Net
. But in the notify icon area of the taskbar it looks real dirty(all squished out). X| But on the dialog control menu it looks real nice. I tried setting the version but still it's like that. Then I tried loading it throughLoadImage
. But now it looks fine but the 3D look is gone. Now MFC is written in Red(I am talking about the icon). :doh: What's wrong?:~ Can somebody help me!Jesus Lives Forever - Amen:rose:
--Owner drawn:rose: --An eye for an eye makes the whole world blind. --Jesus is Lord:rose:
-
I have a notify icon. The
standard MFC icon for VS2003.Net
. But in the notify icon area of the taskbar it looks real dirty(all squished out). X| But on the dialog control menu it looks real nice. I tried setting the version but still it's like that. Then I tried loading it throughLoadImage
. But now it looks fine but the 3D look is gone. Now MFC is written in Red(I am talking about the icon). :doh: What's wrong?:~ Can somebody help me!Jesus Lives Forever - Amen:rose:
--Owner drawn:rose: --An eye for an eye makes the whole world blind. --Jesus is Lord:rose:
-
I think the problem is because you are setting a
32x32
icon. You can try creating a new icon resource with dimensions16x16
. And useLoadIcon(...)
to load it. That should do it. this is this.Yeah buddy I thought about that. That's why I used
LoadImage(...)
. I have loaded it with dimensionsSM_CXSMICON
, andSM_CYSMICON
. Yeah after that it displays MFC in red. It looks fine but I wanted the other one.Jesus Lives Forever - Amen:rose:
--Owner drawn:rose: --An eye for an eye makes the whole world blind. --Jesus is Lord:rose:
-
Yeah buddy I thought about that. That's why I used
LoadImage(...)
. I have loaded it with dimensionsSM_CXSMICON
, andSM_CYSMICON
. Yeah after that it displays MFC in red. It looks fine but I wanted the other one.Jesus Lives Forever - Amen:rose:
--Owner drawn:rose: --An eye for an eye makes the whole world blind. --Jesus is Lord:rose:
Owner drawn wrote:
with dimensions CX_CXSMICON, and CX_CYSMICON
You must mean:
SM_CXICON
andSM_CYICON
.Owner drawn wrote:
but I wanted the other one
I am not sure what you mean by that. Anyway here is a standard way:
HICON hi = AfxGetApp()->LoadIcon(IDI_ICON1);
this is this. -
Owner drawn wrote:
with dimensions CX_CXSMICON, and CX_CYSMICON
You must mean:
SM_CXICON
andSM_CYICON
.Owner drawn wrote:
but I wanted the other one
I am not sure what you mean by that. Anyway here is a standard way:
HICON hi = AfxGetApp()->LoadIcon(IDI_ICON1);
this is this.khan++ wrote:
You must mean: SM_CXICON and SM_CYICON.
Yeah.
khan++ wrote:
I am not sure what you mean by that.
If you have created a dialog based app in vs2003.net then you will know. I wanted the Icon that gets displayed for the control menu of a dialog. But it appears rather odd.
khan++ wrote:
HICON hi = AfxGetApp()->LoadIcon(IDI_ICON1);
This returns a 32x32 icon.
Jesus Lives Forever - Amen:rose:
--Owner drawn:rose: --An eye for an eye makes the whole world blind. --Jesus is Lord:rose:
-
khan++ wrote:
You must mean: SM_CXICON and SM_CYICON.
Yeah.
khan++ wrote:
I am not sure what you mean by that.
If you have created a dialog based app in vs2003.net then you will know. I wanted the Icon that gets displayed for the control menu of a dialog. But it appears rather odd.
khan++ wrote:
HICON hi = AfxGetApp()->LoadIcon(IDI_ICON1);
This returns a 32x32 icon.
Jesus Lives Forever - Amen:rose:
--Owner drawn:rose: --An eye for an eye makes the whole world blind. --Jesus is Lord:rose:
I have never loaded a multi-icon icon (not sure about the term). That is: an icon which contains multiple sized icons, like:
16x16x4
,16x16x8
,32x32x4 ...
(width x height x bits/pixel) within one.ICO
file. You can do a search on it. As I said in my first reply that you can create a new 16x16 icon resource, and try loading that one. this is this. -
khan++ wrote:
You must mean: SM_CXICON and SM_CYICON.
Yeah.
khan++ wrote:
I am not sure what you mean by that.
If you have created a dialog based app in vs2003.net then you will know. I wanted the Icon that gets displayed for the control menu of a dialog. But it appears rather odd.
khan++ wrote:
HICON hi = AfxGetApp()->LoadIcon(IDI_ICON1);
This returns a 32x32 icon.
Jesus Lives Forever - Amen:rose:
--Owner drawn:rose: --An eye for an eye makes the whole world blind. --Jesus is Lord:rose:
tray icons are supposed to have a resolution of 16x16 pixels. if you're loading a bigger one windows will shrink it and you'll get some odd artifacts. so if you want it to be displayed like in your resource editor you need to make it 16x16. saludos
-
tray icons are supposed to have a resolution of 16x16 pixels. if you're loading a bigger one windows will shrink it and you'll get some odd artifacts. so if you want it to be displayed like in your resource editor you need to make it 16x16. saludos
Yeah I know that. Thanks... But I have loaded it using
LoadImage
(...) so I think resolution should not be a problem here.NOTIFYICONDATA
talks of version. I am wondering whether this has got something to do with it.Jesus Lives Forever - Amen:rose:
--Owner drawn:rose: --An eye for an eye makes the whole world blind. --Jesus is Lord:rose:
-
Yeah I know that. Thanks... But I have loaded it using
LoadImage
(...) so I think resolution should not be a problem here.NOTIFYICONDATA
talks of version. I am wondering whether this has got something to do with it.Jesus Lives Forever - Amen:rose:
--Owner drawn:rose: --An eye for an eye makes the whole world blind. --Jesus is Lord:rose:
did you consider that in windows 2000 and former versions, tray icons are only displayed with 16 colors ? (don't mix up with 16 bit colors - cause here you only have 4 Bit which on top of that are pretended by windows)
-
did you consider that in windows 2000 and former versions, tray icons are only displayed with 16 colors ? (don't mix up with 16 bit colors - cause here you only have 4 Bit which on top of that are pretended by windows)
Then what about the Network icon, Yahoo messenger icon, antivirus icon etc. They all are definitely above 16 colors. :doh:
Jesus Lives Forever - Amen:rose:
--Owner drawn:rose: --An eye for an eye makes the whole world blind. --If you find my post helpful then do rate it. --Jesus is Lord:rose:
-
Then what about the Network icon, Yahoo messenger icon, antivirus icon etc. They all are definitely above 16 colors. :doh:
Jesus Lives Forever - Amen:rose:
--Owner drawn:rose: --An eye for an eye makes the whole world blind. --If you find my post helpful then do rate it. --Jesus is Lord:rose:
if you have windows xp, then yes, they have more then 16 colors. take a closer look to them - in windows 2000 they all use the same bunch of colors, namley 16. again, only tray icons are affected. icons in the taskbar, quick launch icons, icons in the upper left corner of your app or just the icons on your desktop - they all can use far more colors.
-
if you have windows xp, then yes, they have more then 16 colors. take a closer look to them - in windows 2000 they all use the same bunch of colors, namley 16. again, only tray icons are affected. icons in the taskbar, quick launch icons, icons in the upper left corner of your app or just the icons on your desktop - they all can use far more colors.
Aha gotcha. Great buddy. Thanks for your time.
Jesus Lives Forever - Amen:rose:
--Owner drawn:rose: --An eye for an eye makes the whole world blind. --If you find my post helpful then do rate it. --Jesus is Lord:rose: