Update font of wxSpinCtrl when DPI changes

Fix position of spin control in wxSpinCtrlDouble after DPI change
The old size of the control was used to determine the position. Use GetBestSize
instead, which will return the correct size.
This commit is contained in:
Maarten Bent
2018-12-30 23:10:20 +01:00
parent 8bff737438
commit 32aabf7a41
3 changed files with 19 additions and 2 deletions

View File

@@ -131,6 +131,7 @@ protected:
virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) wxOVERRIDE;
virtual bool MSWOnScroll(int orientation, WXWORD wParam,
WXWORD pos, WXHWND control) wxOVERRIDE;
virtual void MSWUpdateFontOnDPIChange(const wxSize& newDPI) wxOVERRIDE;
// handle processing of special keys
void OnChar(wxKeyEvent& event);