HDC versus QPainterH

"inovagis" <[email protected]> Tue, 20 Aug 2002 14:02:30 -0000
Newsgroups gmane.comp.lang.delphi.kylix
Message-ID <[email protected]>
Hi 
I'm porting my library of cascanding graphic styles (something like a 
CSS-text string to define graphic behaviour) to delphi 6 (to release 
it as opensource for delphi and kylix) and I'm now stopped in one 
problem.

Is there anyway to from a windows HDC create a QPainterH object.
I noticed that the 
QPainter_handle(handle: QPainterH): HDC;
exists in the QT library (I suppose that it returns the MS Windows 
handler for the canvas) but what I needed was the inverse function 
something like
QPainter_Create(WinHDC:HDC):QPainterH;

Anyone out there can help me on this? 

all the best
Pedro