From: Vadim Zeitlin Date: Sat, 13 Oct 2012 22:52:59 +0000 (+0000) Subject: Set the standard sample icon for the exec sample. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/90bad79f706fddae270850d4a9e72d8343b78d5c?hp=6754c300cf9a378f4dcbe745be545139ffa0a989 Set the standard sample icon for the exec sample. Do this for consistency with all the other ones and also because it makes it simpler to notice any unwanted icons for hidden windows created by this sample. See #13251. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/exec/exec.cpp b/samples/exec/exec.cpp index fd5de1003c..6cdc3da450 100644 --- a/samples/exec/exec.cpp +++ b/samples/exec/exec.cpp @@ -65,6 +65,10 @@ #include "wx/dde.h" #endif // __WINDOWS__ +#ifndef wxHAS_IMAGES_IN_RESOURCES + #include "../sample.xpm" +#endif + // ---------------------------------------------------------------------------- // the usual application and main frame classes // ---------------------------------------------------------------------------- @@ -438,6 +442,8 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size) m_timerIdleWakeUp(this, Exec_TimerIdle), m_timerBg(this, Exec_TimerBg) { + SetIcon(wxICON(sample)); + m_pidLast = 0; #ifdef __WXMAC__