Form icon

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Guest

Form icon

Post by Guest »

Is it possible to change form icon ?

For example an image from http://irrlicht.sourceforge.net/tut001b.html ;

Image

Is it possible to change that white icon which is at the top of form ? I tried from the project options but that only changed the .exe icon of the project ...
danieLs
Posts: 6
Joined: Fri Feb 25, 2005 12:17 pm
Location: Romania
Contact:

Yes it is possibile ...

Post by danieLs »

This is how i done it . Maybe it is the wrong way but now i don't know another one ...

Code: Select all

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{

  WNDCLASS wndWc;

  wndWc.hIcon = LoadIcon(hInstance, (LPCTSTR)IDI_ICON);
  RegisterClass(&wndWc);

  return TRUE;
}
Guest

Post by Guest »

does it mean we have to use windows application ?
or is it possible to use this function with "empty project", if it is, how to use this function ? :)

tnx
Post Reply