Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
238108c5
Kaydet (Commit)
238108c5
authored
Haz 28, 2012
tarafından
Andras Timar
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use defines from systools/win32/qswin32.h instead of duplication
Change-Id: I3d52308087412d1250b8ad64ffc308ca7cc414fd
üst
d0bbbfde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
QuickStart.cxx
desktop/win32/source/QuickStart/QuickStart.cxx
+4
-7
No files found.
desktop/win32/source/QuickStart/QuickStart.cxx
Dosyayı görüntüle @
238108c5
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment