Fix position of label window in wxStaticBox after DPI change
Fixes #23740
This commit is contained in:
parent
a4dec24c6d
commit
d847f3b039
2 changed files with 7 additions and 0 deletions
|
|
@ -97,6 +97,8 @@ protected:
|
|||
|
||||
void OnPaint(wxPaintEvent& event);
|
||||
|
||||
virtual void MSWBeforeDPIChangedEvent(const wxDPIChangedEvent& event) override;
|
||||
|
||||
private:
|
||||
void PositionLabelWindow();
|
||||
|
||||
|
|
|
|||
|
|
@ -366,6 +366,11 @@ WXLRESULT wxStaticBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPar
|
|||
return wxControl::MSWWindowProc(nMsg, wParam, lParam);
|
||||
}
|
||||
|
||||
void wxStaticBox::MSWBeforeDPIChangedEvent(const wxDPIChangedEvent& WXUNUSED(event))
|
||||
{
|
||||
PositionLabelWindow();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// static box drawing
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue