Respond to WM_CLOSE in the hidden window so that the installer can

kill us off nice and easily.
This commit is contained in:
Mike Crowe
2006-05-30 20:19:12 +00:00
parent 7cfbedc04c
commit dcd5980fa6
2 changed files with 10 additions and 0 deletions

View File

@@ -71,6 +71,14 @@ void CNotifyIcon::Destroy()
base::DestroyWindow();
}
void CNotifyIcon::OnClose()
{
// The only time this should happen is if something else explicitly
// sends us the message (such as the installer). We'll just
// exit completely.
GetApplication()->Exit();
}
void CNotifyIcon::PopupBalloon(UINT title_id, UINT text_id, DWORD flags)
{
CString title, text;