From: Andrew C <jx...@gm...> - 2025-04-21 19:07:55
|
That did the trick! Many thanks Jan. On Mon, Apr 21, 2025, 9:34 a.m. Jan Nijtmans <jan...@gm...> wrote: > Op ma 21 apr 2025 om 14:03 schreef Andrew C: > > > > Hello everyone! > > > > I'm modifying Tkhtml and am trying to use Cairo to add border-radius > support but am hitting some roadblocks. > > > > On Linux, it is easy; I simply give Cairo the Xlib Pixmap to draw on. > However, on Windows, I need to give Cairo a Win32 HDC. Is there any way to > get a Pixmap's corresponding HDC on Windows? > > > > Something like TkWinGetDrawableDC might be exactly what I need, but > using it gives me a slew of errors, including "error: 'TkIntPlatStubs' has > no member named 'tkWinGetDrawableDC'". > > > > Any thoughts would be greatly appreciated. > > Try to add this at the beginning of the file: > #include "tkWinInt.h" > That should help. > > Take care! > Jan Nijtmans > |