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

@@ -4876,6 +4876,10 @@ wxWindowMSW::MSWUpdateOnDPIChange(const wxSize& oldDPI, const wxSize& newDPI)
current = current->GetNext();
}
wxDPIChangedEvent event(oldDPI, newDPI);
event.SetEventObject(this);
HandleWindowEvent(event);
}
// ---------------------------------------------------------------------------