1. Win api question.

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.

new topic     » topic index » view message » categorize

2. Re: Win api question.

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 message » categorize

3. Re: Win api question.

Thanks Brian, I'll try that.

Later,
Jeremy Thompson

Life is real, games are for fun.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu