Advertisement

Icon in my OPenGL Executable

Started by September 12, 2000 08:26 AM
1 comment, last by Celtof 24 years, 2 months ago
Hi! I''m new to Win32 Programming, and I''d like to know if anyone can help me. I''ve made an OpenGL program and I use Nehe''s OpenGL initialization in windows. My Problem is the following one: 1- how can I do to make an Icon on my Exe file ? I think I have to use a ressource, but how ? 2- And how to change the icon of the window ? I think it''s there: LoadIcon(NULL, IDI_WINLOGO); but when I write: LoadIcon("toto.ico", IDI_WINLOGO)); It doesn''t work.
to change the window icon you can use a resource and call:

LoadIcon(hInstance, IDI_MYICON);

IDI_MYICON is the icon resource id

for a great tutorial on making basic windows you should check out

http://bcgrizzly.com/~forger/winprog/tutorial/#2.3.
Advertisement
Thank you !

This topic is closed to new replies.

Advertisement