Re: Using GDI Plus with Win32Lib

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu