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
3e7eb8bc
Kaydet (Commit)
3e7eb8bc
authored
Haz 10, 2013
tarafından
Fridrich Štrba
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
mingw64: Use the *LongPtr Windows api
Change-Id: I00c753f71460bee9f2bce3af35b352a25a3b8484
üst
90e16066
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
21 deletions
+25
-21
nsp_windows.cxx
extensions/source/nsplugin/source/nsp_windows.cxx
+7
-16
nsp_windows.hxx
extensions/source/nsplugin/source/nsp_windows.hxx
+16
-3
so_main.cxx
extensions/source/nsplugin/source/so_main.cxx
+2
-2
No files found.
extensions/source/nsplugin/source/nsp_windows.cxx
Dosyayı görüntüle @
3e7eb8bc
...
@@ -27,28 +27,19 @@
...
@@ -27,28 +27,19 @@
************************************************************************/
************************************************************************/
#ifdef WNT
#include "nsp_windows.hxx"
#ifdef _MSC_VER
#pragma warning (push,1)
#pragma warning (disable:4668)
#endif
#include <windows.h>
#ifdef _MSC_VER
#pragma warning (pop)
#endif
#endif
int
NSP_ResetWinStyl
(
long
hParent
)
int
NSP_ResetWinStyl
(
LONG_PTR
hParent
)
{
{
int
ret
=
0
;
int
ret
=
0
;
#ifdef WNT
#ifdef WNT
LONG
dOldStyl
=
GetWindowLong
(
(
HWND
)
hParent
,
GWL_STYLE
);
LONG
_PTR
dOldStyl
=
GetWindowLongPtr
(
(
HWND
)
hParent
,
GWL_STYLE
);
ret
=
dOldStyl
;
ret
=
dOldStyl
;
if
(
ret
!=
0
)
if
(
ret
!=
0
)
{
{
LONG
dNewStyl
=
dOldStyl
|
WS_CLIPCHILDREN
;
LONG
_PTR
dNewStyl
=
dOldStyl
|
WS_CLIPCHILDREN
;
if
(
0
==
SetWindowLong
((
HWND
)
hParent
,
GWL_STYLE
,
dNewStyl
))
if
(
0
==
SetWindowLong
Ptr
((
HWND
)
hParent
,
GWL_STYLE
,
dNewStyl
))
ret
=
0
;
ret
=
0
;
}
}
#endif
#endif
...
@@ -56,11 +47,11 @@ int NSP_ResetWinStyl(long hParent)
...
@@ -56,11 +47,11 @@ int NSP_ResetWinStyl(long hParent)
}
}
int
NSP_RestoreWinStyl
(
long
hParent
,
long
dOldStyle
)
int
NSP_RestoreWinStyl
(
LONG_PTR
hParent
,
LONG_PTR
dOldStyle
)
{
{
int
ret
=
0
;
int
ret
=
0
;
#ifdef WNT
#ifdef WNT
ret
=
SetWindowLong
((
HWND
)
hParent
,
GWL_STYLE
,
dOldStyle
);
ret
=
SetWindowLong
Ptr
((
HWND
)
hParent
,
GWL_STYLE
,
dOldStyle
);
#endif
#endif
return
ret
;
return
ret
;
}
}
...
...
extensions/source/nsplugin/source/nsp_windows.hxx
Dosyayı görüntüle @
3e7eb8bc
...
@@ -28,10 +28,23 @@
...
@@ -28,10 +28,23 @@
#ifndef __NSP_WINDOWS_HXX__
#ifndef __NSP_WINDOWS_HXX__
#define __NSP_WINDOWS_HXX__
#define __NSP_WINDOWS_HXX__
#ifdef WNT
#ifdef _MSC_VER
#pragma warning (push,1)
#pragma warning (disable:4668)
#endif
#include <windows.h>
#ifdef _MSC_VER
#pragma warning (pop)
#endif
#else
#ifndef LONG_PTR
#define LONG_PTR long
#endif
#endif
int
NSP_ResetWinStyl
(
LONG_PTR
hParent
);
int
NSP_ResetWinStyl
(
long
hParent
);
int
NSP_RestoreWinStyl
(
LONG_PTR
hParent
,
LONG_PTR
dOldStyle
);
int
NSP_RestoreWinStyl
(
long
hParent
,
long
dOldStyle
);
#endif
#endif
...
...
extensions/source/nsplugin/source/so_main.cxx
Dosyayı görüntüle @
3e7eb8bc
...
@@ -449,8 +449,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
...
@@ -449,8 +449,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
iPipe
[
1
]
=
atoi
(
argv
[
2
]);
iPipe
[
1
]
=
atoi
(
argv
[
2
]);
// fd_pipe[0]: read, fd_pipe[0]: write
// fd_pipe[0]: read, fd_pipe[0]: write
fd_pipe
[
0
]
=
(
NSP_PIPE_FD
)
iPipe
[
0
]
;
fd_pipe
[
0
]
=
(
NSP_PIPE_FD
)
(
sal_IntPtr
)
iPipe
[
0
]
;
fd_pipe
[
1
]
=
(
NSP_PIPE_FD
)
iPipe
[
1
]
;
fd_pipe
[
1
]
=
(
NSP_PIPE_FD
)
(
sal_IntPtr
)
iPipe
[
1
]
;
NSP_Close_Pipe
(
fd_pipe
[
1
]);
NSP_Close_Pipe
(
fd_pipe
[
1
]);
if
(
iPipe
[
0
]
<
0
)
if
(
iPipe
[
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