Set all parent frame icons for print preview frame.
Using SetIcon(GetIcon()) resulted in ugly scaled icons being used for small icons while using SetIcons(GetIcons()) correctly reuses all parent frame icons in the child one. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1271,7 +1271,7 @@ wxFrame(parent, wxID_ANY, title, pos, size, style, name)
|
||||
#ifdef __WXMSW__
|
||||
wxFrame* topFrame = wxDynamicCast(wxTheApp->GetTopWindow(), wxFrame);
|
||||
if (topFrame)
|
||||
SetIcon(topFrame->GetIcon());
|
||||
SetIcons(topFrame->GetIcons());
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user