*** empty log message ***

svn path=/trunk/boinc/; revision=4493
This commit is contained in:
Rom Walton 2004-11-05 21:23:40 +00:00
parent 6c904f7bcb
commit 20b4f894b7
4 changed files with 10 additions and 3 deletions

View File

@ -171,6 +171,8 @@ void CTaskBarIcon::OnClose( wxCloseEvent& event )
if ( NULL != pFrame )
pFrame->Close(true);
event.Skip();
}

View File

@ -786,10 +786,7 @@ void CMainFrame::OnClose( wxCloseEvent& event )
if ( !event.CanVeto() )
Destroy();
else
{
Hide();
event.Veto();
}
}

View File

@ -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)

View File

@ -42,6 +42,7 @@ public:
};
// Events
virtual void OnClose( wxCloseEvent& event );
virtual void OnTaskBarCreated( wxTaskBarIconExEvent& event );
// Accessors