summaryrefslogtreecommitdiff
path: root/desktop/win32/source/QuickStart
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 14:23:03 +0200
commit238108c5429722abe39262df4709ed0d31917790 (patch)
tree8004e8236eff0a5ed100409e2fd21d7acfa9fd3e /desktop/win32/source/QuickStart
parentd0bbbfdef6b31650a351883de09b5338562048a2 (diff)
use defines from systools/win32/qswin32.h instead of duplication
Change-Id: I3d52308087412d1250b8ad64ffc308ca7cc414fd
Diffstat (limited to 'desktop/win32/source/QuickStart')
-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 );
}