Fix acquiring HDC from wxGCDC with non-GDI+ graphics context

HDC can be acquired/released only when wxGCDC is associated with GDI+
graphics context.

Closes #19207.
This commit is contained in:
Artur Wieczorek
2021-06-24 19:22:56 +02:00
parent 36f84d0257
commit ffc7c036f1
2 changed files with 7 additions and 13 deletions

View File

@@ -306,6 +306,9 @@ public:
it changes them, so it is safe to assume that the same pen, brush and colours
that were active before the call to this function are still in effect after it.
@note Under wxMSW drawing on wxGCDC is possible only if it's associated with
GDI+ wxGraphicsContext.
@library{wxcore}
@category{gdi}
*/