summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/shutdowniconw32.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2004-08-12 07:19:00 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2004-08-12 07:19:00 +0000
commit07c88516ccebd18035a69634f8fb748242192b5e (patch)
treeb00f60dc99cd8a039cac170d650107414f23130d /sfx2/source/appl/shutdowniconw32.cxx
parent65f0cba1378b47531fb942cc5c1f164913d59985 (diff)
INTEGRATION: CWS cnpsdk (1.26.54); FILE MERGED
2004/07/21 15:27:03 hro 1.26.54.1: #i31020# Only shutdown quickstarters belonging to installation
Diffstat (limited to 'sfx2/source/appl/shutdowniconw32.cxx')
-rw-r--r--sfx2/source/appl/shutdowniconw32.cxx19
1 files changed, 9 insertions, 10 deletions
diff --git a/sfx2/source/appl/shutdowniconw32.cxx b/sfx2/source/appl/shutdowniconw32.cxx
index 93a4990049fe..74c863f4e706 100644
--- a/sfx2/source/appl/shutdowniconw32.cxx
+++ b/sfx2/source/appl/shutdowniconw32.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: shutdowniconw32.cxx,v $
*
- * $Revision: 1.26 $
+ * $Revision: 1.27 $
*
- * last change: $Author: kz $ $Date: 2004-06-11 17:58:38 $
+ * last change: $Author: rt $ $Date: 2004-08-12 08:19:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -80,6 +80,7 @@
#include <io.h>
#include <osl/thread.h>
#include <osl/file.hxx>
+#include <qswin32.h>
#ifndef _COMPHELPER_PROCESSFACTORY_HXX_
#include <comphelper/processfactory.hxx>
@@ -106,11 +107,9 @@ using namespace ::com::sun::star::beans;
using namespace ::osl;
-#define LISTENER_WINDOWCLASS "SO Listener Class"
-#define LISTENER_WINDOWNAME "SO Listener Window"
#define EXECUTER_WINDOWCLASS "SO Executer Class"
#define EXECUTER_WINDOWNAME "SO Executer Window"
-#define KILLTRAY_MESSAGE TEXT("SO KillTray")
+
#define ID_QUICKSTART 1
#define IDM_EXIT 2
@@ -354,7 +353,7 @@ LRESULT CALLBACK listenerWndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lP
// request notfication when taskbar is recreated
// we then have to add our icon again
s_uTaskbarRestart = RegisterWindowMessage(TEXT("TaskbarCreated"));
- s_uMsgKillTray = RegisterWindowMessage( KILLTRAY_MESSAGE );
+ s_uMsgKillTray = RegisterWindowMessage( SHUTDOWN_QUICKSTART_MESSAGE );
// create the menu
if( !popupMenu )
@@ -544,8 +543,8 @@ LRESULT CALLBACK executerWndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lP
DWORD WINAPI SystrayThread( LPVOID lpParam )
{
aListenerWindow = CreateWindowExA(0,
- LISTENER_WINDOWCLASS, // registered class name
- LISTENER_WINDOWNAME, // window name
+ QUICKSTART_CLASSNAME, // registered class name
+ QUICKSTART_WINDOWNAME, // window name
0, // window style
CW_USEDEFAULT, // horizontal position of window
CW_USEDEFAULT, // vertical position of window
@@ -584,7 +583,7 @@ void ShutdownIcon::initSystray()
listenerClass.hCursor = NULL;
listenerClass.hbrBackground = NULL;
listenerClass.lpszMenuName = NULL;
- listenerClass.lpszClassName = LISTENER_WINDOWCLASS;
+ listenerClass.lpszClassName = QUICKSTART_CLASSNAME;
listenerClass.hIconSm = NULL;
RegisterClassExA(&listenerClass);
@@ -634,7 +633,7 @@ void ShutdownIcon::deInitSystray()
DestroyWindow( aExecuterWindow );
aExecuterWindow = NULL;
}
- UnregisterClassA( LISTENER_WINDOWCLASS, GetModuleHandle( NULL ) );
+ UnregisterClassA( QUICKSTART_CLASSNAME, GetModuleHandle( NULL ) );
UnregisterClassA( EXECUTER_WINDOWCLASS, GetModuleHandle( NULL ) );
}