WinClass.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1));
WinClass.hIconSm = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1));
Loading Icon resource problem
Well I started TOTWGPG book and I''m a little stuck on loading Icon resources. It works well for hIcon but hIconSm doesn''t want to work. I''m using the same Icon for both hIcon and hIconSm
in the resource file I typed:
IDI_ICON1 ICON icon1.ico
in the header file I typed:
#define IDI_ICON1 100
in the source I typed
Now the Icon I checked is 32x32 16 colors.
thx Jeff D
Suffered seven plagues, but refused to let the slaves go free. ~ Ross Atherton
I think one icon is meant to be smaller than the other, check the sizes in TOTWGPG.
,Jay
,Jay
Yo!Wassup!
I recently started reading tricks as well.I am not sure about this but change the second
WinClass.hIconSm = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1));
to this:
winClass,hIconSm = LoadIcon(hinstance, "IDI_ICON1") ;
That seems to work for me.Let me know if it works.Bye.
______________________________Yes I think the rev pad sucks/so does 50 and the DS. I like action and am not ashamed. I prefer brunettes but hate chocolate. Yes,I have opinions!!! Rate as you will.
oh and one more thing:
Theres no problem with the icon size.Both mine are 32x32 ''s and it still works fine for me.
bye.
______________________________Yes I think the rev pad sucks/so does 50 and the DS. I like action and am not ashamed. I prefer brunettes but hate chocolate. Yes,I have opinions!!! Rate as you will.
Access thx a lot it did work.
Jeff D
Jeff D
Suffered seven plagues, but refused to let the slaves go free. ~ Ross Atherton
Never fear.Its another day''s job done in the life on super hero
"Redaccess" !.Just kidding.
______________________________Yes I think the rev pad sucks/so does 50 and the DS. I like action and am not ashamed. I prefer brunettes but hate chocolate. Yes,I have opinions!!! Rate as you will.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement