Use sample icon

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2005-03-18 09:44:42 +00:00
parent 8ddd9176a4
commit 18922659eb
2 changed files with 8 additions and 0 deletions

View File

@@ -32,6 +32,8 @@
#include "wx/splitter.h" #include "wx/splitter.h"
#include "wx/textfile.h" #include "wx/textfile.h"
#include "../sample.xpm"
#ifdef __WXMAC__ #ifdef __WXMAC__
#undef wxFontDialog #undef wxFontDialog
#include "wx/mac/fontdlg.h" #include "wx/mac/fontdlg.h"
@@ -234,6 +236,8 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
{ {
m_fontSize = 12; m_fontSize = 12;
SetIcon(wxIcon(sample_xpm));
// create a menu bar // create a menu bar
wxMenu *menuFile = new wxMenu; wxMenu *menuFile = new wxMenu;

View File

@@ -33,6 +33,8 @@
#include "wx/fs_inet.h" #include "wx/fs_inet.h"
#include "wx/filedlg.h" #include "wx/filedlg.h"
#include "../../sample.xpm"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// private classes // private classes
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@@ -188,6 +190,8 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
// ... and attach this menu bar to the frame // ... and attach this menu bar to the frame
SetMenuBar(menuBar); SetMenuBar(menuBar);
SetIcon(wxIcon(sample_xpm));
#if wxUSE_ACCEL #if wxUSE_ACCEL
// Create convenient accelerators for Back and Forward navigation // Create convenient accelerators for Back and Forward navigation
wxAcceleratorEntry entries[2]; wxAcceleratorEntry entries[2];