Re: Win32Lib: Window Icon

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

On Fri, 25 Feb 2000 16:54:52 -0500, Brian Broker <bkb at CNW.COM> wrote:

>Unless somebody knew of a better way to do this, I was merely pointing out
>a not-so-obvious idea for other users of Win32Lib who want to bind their
>programs with custom icons...  (at least it wasn't initially obvious to me
>and I just thought that it might be a nice example for the Win32Lib
>documentation).
>

   Brian:

      Look at the WNDCLASSEX structure in windows. You will find a

   member called cbClsExtra which specifies the number of EXTRA bytes

   to allocate following the window's instance. Now if you can convince

   David ( or edit your copy of win32lib ) to allow you to change

   this size to fit your Icon. You can store your Icon there and it

   will always be available no matter what you call your program.

   You will have to figure out how to get it's offset, I think you

   can use GetWindowLong with nIndex and use that to grab and copy

   out 32 bits at a time.

  Bernie

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

Search



Quick Links

User menu

Not signed in.

Misc Menu