mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=4493
This commit is contained in:
parent
6c904f7bcb
commit
20b4f894b7
|
@ -171,6 +171,8 @@ void CTaskBarIcon::OnClose( wxCloseEvent& event )
|
|||
|
||||
if ( NULL != pFrame )
|
||||
pFrame->Close(true);
|
||||
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -786,10 +786,7 @@ void CMainFrame::OnClose( wxCloseEvent& event )
|
|||
if ( !event.CanVeto() )
|
||||
Destroy();
|
||||
else
|
||||
{
|
||||
Hide();
|
||||
event.Veto();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@ DEFINE_EVENT_TYPE( wxEVT_TASKBAR_BALLOON_USERCLICK )
|
|||
IMPLEMENT_DYNAMIC_CLASS(wxTaskBarIconEx, wxEvtHandler)
|
||||
|
||||
BEGIN_EVENT_TABLE (wxTaskBarIconEx, wxEvtHandler)
|
||||
EVT_CLOSE(wxTaskBarIconEx::OnClose)
|
||||
EVT_TASKBAR_CREATED(wxTaskBarIconEx::OnTaskBarCreated)
|
||||
END_EVENT_TABLE ()
|
||||
|
||||
|
@ -70,6 +71,12 @@ wxTaskBarIconEx::~wxTaskBarIconEx(void)
|
|||
}
|
||||
|
||||
// Events
|
||||
void wxTaskBarIconEx::OnClose(wxCloseEvent& event)
|
||||
{
|
||||
::DestroyWindow((HWND) m_hWnd);
|
||||
m_hWnd = 0;
|
||||
}
|
||||
|
||||
void wxTaskBarIconEx::OnTaskBarCreated(wxTaskBarIconExEvent& event)
|
||||
{
|
||||
if (m_iconAdded)
|
||||
|
|
|
@ -42,6 +42,7 @@ public:
|
|||
};
|
||||
|
||||
// Events
|
||||
virtual void OnClose( wxCloseEvent& event );
|
||||
virtual void OnTaskBarCreated( wxTaskBarIconExEvent& event );
|
||||
|
||||
// Accessors
|
||||
|
|
Loading…
Reference in New Issue