always call SetIcon() on the main frame of the sample; some small cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -40,6 +40,9 @@
|
||||
#include "wx/dcclient.h"
|
||||
#include "wx/image.h"
|
||||
|
||||
#ifndef __WXMSW__
|
||||
#include "../sample.xpm"
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// constants
|
||||
@@ -246,6 +249,8 @@ MainFrame::MainFrame()
|
||||
: wxFrame(NULL, wxID_ANY, "wxWidgets Shaped Sample",
|
||||
wxDefaultPosition, wxSize(200, 100))
|
||||
{
|
||||
SetIcon(wxICON(sample));
|
||||
|
||||
wxMenuBar * const mbar = new wxMenuBar;
|
||||
wxMenu * const menuFrames = new wxMenu;
|
||||
menuFrames->Append(Show_Shaped, "Show &shaped window\tCtrl-S");
|
||||
|
Reference in New Issue
Block a user