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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change the title bar icon ?

Status
Not open for further replies.

Handy2005

Programmer
Apr 13, 2005
5
GB
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.
 
Thanks, but it's the same window handle that I also use to set the title so I am sure of its validity.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top