Advertisement

changing a '.exe' icon

Started by March 04, 2002 05:50 AM
0 comments, last by nws_mrman 22 years, 6 months ago
How can i change the icon for my game executable? Thanks for any help <a href="http://www.geocities.com/dark_mrman"><p align=center><img border=0 width=150 height=40 src="http://www.geocities.com/dark_mrman/Pictures/Cpp4.jpg" alt="http://www.geocities.com/dark_mrman"></p>
[I wouldn't bother going to my website yet]

Change the value of the hIcon and hIconSm members of the wndclass used by your main window. Alternatively, send the window a WM_SETICON message like so:

  // these icon setting calls won''t work on NT 3.51 but so what    SendMessage(hwnd, WM_SETICON, TRUE		, (LPARAM) LoadIcon(GetWindowInstance(hwnd), MAKEINTRESOURCE(IDI_LARGE)));  

"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - the Laughing Man

This topic is closed to new replies.

Advertisement