Under Windows XP I have tried to change the icon of both a main and an MDI window (whilst the window is shown) by sending a WM_SETICON message passing the handle of a valid loaded icon. Nothing happens !
Are you sending it to the correct window handle? If it is something like a property sheet, the handle that you think is the frame is actually a child of the frame. You may need to go up one more level.
Have a look with spy++. See if you have the correct handle.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.