Re: Using GDI Plus with Win32Lib
- Posted by mattlewis (admin) Jan 09, 2012
- 1284 views
buzzo said...
Is GDI Plus not compatible with Win32Lib or am I missing something? Suggested fix?
First, note that a Win32Lib id is not a HWND (Windows Handle). A Windows handle is a 32-bit value (technically, the size of a pointer), and so should always be an atom. The values used by Win32Lib are indices into a sequence, and so may be safely stored in an atom.
The ~GDIPlus library is not Win32Lib specific, and requires the actual Windows handle. You can get the Windows handle for any Win32Lib id using the Win32Lib function, getHandle(). Make sure that all of the values you pass to the GDIPlus library are generated like that.
Matt