When a wxBufferedPaintDC is created, the base classes does not initialize the m_window variable with the used wxWindow. Only the associated m_paintdc initializes this variable. Add a protected function that allows to set the wxWindow of a wxDC so GetWindow() will return the window. This fixes the font size of custom attributes in wxDataViewCtrl when the DPI changes.
7.5 KiB
7.5 KiB