summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2012-06-28 14:21:27 +0200
committerAndras Timar <atimar@suse.com>2012-06-28 19:48:56 +0200
commit55d095a3122f68ebf97fd9b2567173c7fb648761 (patch)
tree78333505bc016cfced8770815d8a3014ef8704cf /desktop
parentfbc9e19443167bdfd98474ff979bf2c34530efca (diff)
use defines from systools/win32/qswin32.h instead of duplication
Change-Id: I3d52308087412d1250b8ad64ffc308ca7cc414fd
Diffstat (limited to 'desktop')
-rw-r--r--desktop/win32/source/QuickStart/QuickStart.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/desktop/win32/source/QuickStart/QuickStart.cxx b/desktop/win32/source/QuickStart/QuickStart.cxx
index b3e19a555a05..77583c43429e 100644
--- a/desktop/win32/source/QuickStart/QuickStart.cxx
+++ b/desktop/win32/source/QuickStart/QuickStart.cxx
@@ -5,16 +5,13 @@
#include "StdAfx.h"
#include "resource.h"
#include <systools/win32/uwinapi.h>
+#include <systools/win32/qswin32.h>
#include <stdio.h>
-// message used to communicate with soffice
-#define LISTENER_WINDOWCLASS "SO Listener Class"
-#define KILLTRAY_MESSAGE "SO KillTray"
-
bool SofficeRuns()
{
// check for soffice by searching the communication window
- return ( FindWindowEx( NULL, NULL, LISTENER_WINDOWCLASS, NULL ) == NULL ) ? false : true;
+ return ( FindWindowEx( NULL, NULL, QUICKSTART_CLASSNAME, NULL ) == NULL ) ? false : true;
}
bool launchSoffice( )
@@ -57,11 +54,11 @@ int APIENTRY WinMain(HINSTANCE /*hInstance*/,
{
if ( 0 == strcmp( __argv[i], "--killtray" ) )
{
- HWND hwndTray = FindWindow( LISTENER_WINDOWCLASS, NULL );
+ HWND hwndTray = FindWindow( QUICKSTART_CLASSNAME, NULL );
if ( hwndTray )
{
- UINT uMsgKillTray = RegisterWindowMessage( KILLTRAY_MESSAGE );
+ UINT uMsgKillTray = RegisterWindowMessage( SHUTDOWN_QUICKSTART_MESSAGE );
SendMessage( hwndTray, uMsgKillTray, 0, 0 );
}