Fix wxBitmapComboBox size in high DPI

Convert hard-coded sizes to DPI depended size, remove unused size.
Implement MSWUpdateFontOnDPIChange() and update the control elements.
This commit is contained in:
Maarten Bent
2019-01-01 19:26:34 +01:00
parent 37be4adec6
commit 123da53306
3 changed files with 21 additions and 6 deletions

View File

@@ -104,6 +104,7 @@ protected:
WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const wxOVERRIDE;
virtual bool MSWOnDraw(WXDRAWITEMSTRUCT *item) wxOVERRIDE;
virtual bool MSWOnMeasure(WXMEASUREITEMSTRUCT *item) wxOVERRIDE;
virtual void MSWUpdateFontOnDPIChange(const wxSize& newDPI) wxOVERRIDE;
// Event handlers
void OnSize(wxSizeEvent& event);