Generate wxDPIChangedEvent when DPI changes

This commit is contained in:
Maarten Bent
2016-10-05 21:42:33 +02:00
parent 137713e0c8
commit e3d3a0b7e8
6 changed files with 97 additions and 2 deletions

View File

@@ -587,7 +587,8 @@ public:
virtual void WXDoUpdatePendingFocus(wxWindow* WXUNUSED(win)) {}
// Called from WM_DPICHANGED handler for all windows to let them update
// any sizes and fonts used internally when the DPI changes.
// any sizes and fonts used internally when the DPI changes and generate
// wxDPIChangedEvent to let the user code do the same thing as well.
void MSWUpdateOnDPIChange(const wxSize& oldDPI, const wxSize& newDPI);
protected: