Search code examples
winapiwxwidgets

Convert HDC to wxClientDC?


Is there a way to convert a HDC to a wxDC object? I know wxDC is abstract. Is it possible to convert to wxClientDC?


Solution

  • You may use semi-internal (and MSW-specific, obviously) wxDCTemp class, see include/wx/msw/dc.h.