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 )
|
if ( NULL != pFrame )
|
||||||
pFrame->Close(true);
|
pFrame->Close(true);
|
||||||
|
|
||||||
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -786,10 +786,7 @@ void CMainFrame::OnClose( wxCloseEvent& event )
|
||||||
if ( !event.CanVeto() )
|
if ( !event.CanVeto() )
|
||||||
Destroy();
|
Destroy();
|
||||||
else
|
else
|
||||||
{
|
|
||||||
Hide();
|
Hide();
|
||||||
event.Veto();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@ DEFINE_EVENT_TYPE( wxEVT_TASKBAR_BALLOON_USERCLICK )
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxTaskBarIconEx, wxEvtHandler)
|
IMPLEMENT_DYNAMIC_CLASS(wxTaskBarIconEx, wxEvtHandler)
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE (wxTaskBarIconEx, wxEvtHandler)
|
BEGIN_EVENT_TABLE (wxTaskBarIconEx, wxEvtHandler)
|
||||||
|
EVT_CLOSE(wxTaskBarIconEx::OnClose)
|
||||||
EVT_TASKBAR_CREATED(wxTaskBarIconEx::OnTaskBarCreated)
|
EVT_TASKBAR_CREATED(wxTaskBarIconEx::OnTaskBarCreated)
|
||||||
END_EVENT_TABLE ()
|
END_EVENT_TABLE ()
|
||||||
|
|
||||||
|
@ -70,6 +71,12 @@ wxTaskBarIconEx::~wxTaskBarIconEx(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Events
|
// Events
|
||||||
|
void wxTaskBarIconEx::OnClose(wxCloseEvent& event)
|
||||||
|
{
|
||||||
|
::DestroyWindow((HWND) m_hWnd);
|
||||||
|
m_hWnd = 0;
|
||||||
|
}
|
||||||
|
|
||||||
void wxTaskBarIconEx::OnTaskBarCreated(wxTaskBarIconExEvent& event)
|
void wxTaskBarIconEx::OnTaskBarCreated(wxTaskBarIconExEvent& event)
|
||||||
{
|
{
|
||||||
if (m_iconAdded)
|
if (m_iconAdded)
|
||||||
|
|
|
@ -42,6 +42,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
// Events
|
// Events
|
||||||
|
virtual void OnClose( wxCloseEvent& event );
|
||||||
virtual void OnTaskBarCreated( wxTaskBarIconExEvent& event );
|
virtual void OnTaskBarCreated( wxTaskBarIconExEvent& event );
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
|
|
Loading…
Reference in New Issue