From: Jan N. <jan...@gm...> - 2025-04-21 13:34:50
|
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 |