Re: Win32Lib: Window Icon
- Posted by Mathew Hounsell <mfh03 at UOW.EDU.AU> Feb 26, 2000
- 462 views
Date sent: Fri, 25 Feb 2000 18:11:38 -0500 From: Bernie Ryan <LockCityData at CS.COM> Subject: Re: Win32Lib: Window Icon > 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. One small problem, the Windows will not allow extra size of more than 40 bytes per window class. Also it is a runtime thing. ------------------------- Sincerely, Mathew Hounsell mat.hounsell at excite.com