Re: Win api question.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jeremy Peterson wrote:
> 
> What api call would I use to change the icon in the upper-left corner of 
> an application?
> 
> Later,
> Jeremy Peterson
> 
> Life is real, games are for fun.

If you are using Win32Lib, you could just do:

setIcon(Win,"icon.ico")

Using API calls, you could get the icon handle with ExtractIcon, then use
SendMessage to send a WM_SETICON message to the window, passing the icon handle. 
Win32Lib does this for ICON_BIG and ICON_SMALL.

-- Brian

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu