Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Window (NOT Window Class) Icon... 1

Status
Not open for further replies.

Milby7

Programmer
Dec 5, 2003
67
0
0
GB
hi!!

does anyone know how to set a window icon, rather than a window class icon? e.g. if MyApp is run twice, using SetClassLong I will set the icon of both windows whichever window handle i provide because both windows are registered as being the same class of window. i need to set the icon of only one of the two windows.

if anyone has any ideas please let me know!

thanks!
 
SendMessage ( hWnd, WM_SETICON, wParam, lParam );

hWnd = window of interest
wParam = ICON_BIG or ICON_SMALL
lParam = (LPARAM)<Icon handle (hIcon)>

Marcel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top