X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e60165f72ed20e09d0fcbe4a50227f79d529dbb8..0d1903dbda864780eec30efdc4e91776bdbfd21b:/src/msw/taskbar.cpp diff --git a/src/msw/taskbar.cpp b/src/msw/taskbar.cpp index 6cd962b79c..537db33bfd 100644 --- a/src/msw/taskbar.cpp +++ b/src/msw/taskbar.cpp @@ -5,7 +5,6 @@ // Author: Julian Smart // Modified by: Vaclav Slavik // Created: 24/3/98 -// RCS-ID: $Id$ // Copyright: (c) // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////// @@ -110,8 +109,10 @@ static BOOL wxShellNotifyIcon(DWORD dwMessage, NOTIFYICONDATA *pData) // wxTaskBarIconWindow: helper window // ---------------------------------------------------------------------------- -// We need a HWND to create a taskbar icon, so create a special hidden window -// just to be able to use its HWND. +// NB: this class serves two purposes: +// 1. win32 needs a HWND associated with taskbar icon, this provides it +// 2. we need wxTopLevelWindow so that the app doesn't exit when +// last frame is closed but there still is a taskbar icon class wxTaskBarIconWindow : public wxFrame { public: @@ -121,11 +122,6 @@ public: { } - // This implicitly created window shouldn't prevent the application from - // exiting if all its other windows are closed. - virtual bool ShouldPreventAppExit() const { return false; } - -protected: WXLRESULT MSWWindowProc(WXUINT msg, WXWPARAM wParam, WXLPARAM lParam) {