Fix wxStatusBar font and position after DPI changes

Update the font of the associated wxDC so ellipsization uses the correct font
size.
This commit is contained in:
Maarten Bent
2019-09-03 22:07:49 +02:00
parent 4713301cf5
commit e312569b94
3 changed files with 23 additions and 3 deletions

View File

@@ -72,6 +72,8 @@ protected:
// implementation of the public SetStatusWidths()
void MSWUpdateFieldsWidths();
virtual void MSWUpdateFontOnDPIChange(const wxSize& newDPI) wxOVERRIDE;
// used by DoUpdateStatusText()
wxClientDC *m_pDC;