Re: Using GDI Plus with Win32Lib

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

Matt,

This is from GDIPLUS ...

constant xGdipCreateFromHWND=lF(gdiplus,"GdipCreateFromHWND",{CP,CP},CL) 
 
global function GdipCreateFromHWND(atom hwnd,atom pp_graphics) 
    --(HWND hwnd,GpGraphics **graphics) 
  if gdiplus>0 then 
    return c_func(xGdipCreateFromHWND,{hwnd,pp_graphics}) 
  else 
    return 0 
  end if 
end function 

This is my code...

atom ppGraphics,ppImage,pGraphics 
atom wH 
wH=getHandle(win)					-- no image 
status=GdipCreateFromHWND(wH,ppGraphics) 

Atoms are atoms where they should be.. If you have no idea why this fails, that's OK... Maybe someone else will have a idea why atoms are not atoms?????? I'll be checking back from time to time..

Buzzo


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

Search



Quick Links

User menu

Not signed in.

Misc Menu