removed the menu item which could be used to remove the icon and leave the user without any way to interact with the application (nor quit it)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-12-01 15:55:28 +00:00
parent 8b1350d49d
commit 3ecee463f5
2 changed files with 25 additions and 33 deletions

View File

@@ -24,13 +24,12 @@ public:
void OnMenuRestore(wxCommandEvent&);
void OnMenuExit(wxCommandEvent&);
void OnMenuSetNewIcon(wxCommandEvent&);
void OnMenuSetOldIcon(wxCommandEvent&);
void OnMenuCheckmark(wxCommandEvent&);
void OnMenuUICheckmark(wxUpdateUIEvent&);
void OnMenuCheckmark(wxCommandEvent&);
void OnMenuUICheckmark(wxUpdateUIEvent&);
void OnMenuSub(wxCommandEvent&);
virtual wxMenu *CreatePopupMenu();
DECLARE_EVENT_TABLE()
DECLARE_EVENT_TABLE()
};
@@ -38,7 +37,7 @@ DECLARE_EVENT_TABLE()
class MyApp: public wxApp
{
public:
bool OnInit(void);
virtual bool OnInit();
};
class MyDialog: public wxDialog
@@ -46,18 +45,19 @@ class MyDialog: public wxDialog
public:
MyDialog(wxWindow* parent, const wxWindowID id, const wxString& title,
const wxPoint& pos, const wxSize& size, const long windowStyle = wxDEFAULT_DIALOG_STYLE);
~MyDialog();
virtual ~MyDialog();
protected:
void Init();
void OnOK(wxCommandEvent& event);
void OnExit(wxCommandEvent& event);
void OnCloseWindow(wxCloseEvent& event);
void Init(void);
protected:
MyTaskBarIcon *m_taskBarIcon;
#if defined(__WXCOCOA__)
MyTaskBarIcon *m_dockIcon;
#endif
DECLARE_EVENT_TABLE()
DECLARE_EVENT_TABLE()
};