Re: Using GDI Plus with Win32Lib
- Posted by mattlewis (admin) Jan 09, 2012
- 1237 views
buzzo said...
Slimmed down code.. same results..
DoGraphics() WinMain(win,Normal)
OK, first, remember to use getHandle() (or getHWND()) to convert your Win32Lib id into a valid windows handle. The next thing is that you need to put the call to DoGraphics() inside of a paint event handler:
procedure win_onPaint(integer Self, integer Event, sequence Params) DoGraphics() end procedure setHandler( win, w32HPaint, routine_id("win_onPaint"))
Basically, for anything that happens while your program is open, the code needs to be called from an event handler.
Matt