Improve wxDataView on DPI change

Fix the row heights after a DPI change and adjust the column widths.
Use DPIChangedEvent instead of MSWUpdateFontOnDPIChange because the child
controls (m_clientArea, m_headerArea) need to update their font sizes first.
This commit is contained in:
Maarten Bent
2019-01-10 22:24:45 +01:00
parent fd2cf1f4e2
commit 56fab0aabb
3 changed files with 42 additions and 15 deletions

View File

@@ -316,6 +316,8 @@ protected:
virtual void DoEnableSystemTheme(bool enable, wxWindow* window) wxOVERRIDE;
void OnDPIChanged(wxDPIChangedEvent& event);
public: // utility functions not part of the API
// returns the "best" width for the idx-th column