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:
Vadim Zeitlin
2009-07-25 16:40:35 +00:00
parent 7c798d002e
commit 7ccf316e1a

View File

@@ -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
}