ROOT
v6-22
Reference Guide
TWin32SplashThread.cxx
Go to the documentation of this file.
1
2
/*************************************************************************
3
* Copyright (C) 1995-2001, Rene Brun and Fons Rademakers. *
4
* All rights reserved. *
5
* *
6
* For the licensing terms see $ROOTSYS/LICENSE. *
7
* For the list of contributors see $ROOTSYS/README/CREDITS. *
8
*************************************************************************/
9
10
#include "
Windows4Root.h
"
11
#include "
TWin32SplashThread.h
"
12
13
TWin32SplashThread
*
gSplash
= 0;
14
15
extern
void
CreateSplash
(DWORD time,
bool
extended);
16
extern
void
DestroySplashScreen
();
17
18
////////////////////////////////////////////////////////////////////////////////
19
/// thread for handling Splash Screen
20
21
static
DWORD WINAPI
HandleSplashThread
(LPVOID extended)
22
{
23
CreateSplash
(4, (
Bool_t
)extended);
24
if
(
gSplash
)
delete
gSplash
;
25
gSplash
= 0;
26
return
0;
27
}
28
29
////////////////////////////////////////////////////////////////////////////////
30
/// ctor.
31
32
TWin32SplashThread::TWin32SplashThread
(
Bool_t
extended)
33
{
34
fHandle
= 0;
35
DWORD splashId = 0;
36
fHandle
= ::CreateThread( NULL, 0,&
HandleSplashThread
, (LPVOID)extended, 0, &splashId );
37
gSplash
=
this
;
38
}
39
40
////////////////////////////////////////////////////////////////////////////////
41
/// dtor
42
43
TWin32SplashThread::~TWin32SplashThread
()
44
{
45
DestroySplashScreen
();
46
TerminateThread(
fHandle
, 0);
47
if
(
fHandle
) ::CloseHandle(
fHandle
);
48
fHandle
= 0;
49
}
50
Bool_t
bool Bool_t
Definition:
RtypesCore.h:61
HandleSplashThread
static DWORD WINAPI HandleSplashThread(LPVOID extended)
thread for handling Splash Screen
Definition:
TWin32SplashThread.cxx:21
DestroySplashScreen
void DestroySplashScreen()
CreateSplash
void CreateSplash(DWORD time, bool extended)
gSplash
TWin32SplashThread * gSplash
Definition:
TWin32SplashThread.cxx:13
TWin32SplashThread.h
Windows4Root.h
TWin32SplashThread
Definition:
TWin32SplashThread.h:18
TWin32SplashThread::~TWin32SplashThread
~TWin32SplashThread()
dtor
Definition:
TWin32SplashThread.cxx:43
TWin32SplashThread::TWin32SplashThread
TWin32SplashThread(Bool_t extended)
ctor.
Definition:
TWin32SplashThread.cxx:32
TWin32SplashThread::fHandle
void * fHandle
Definition:
TWin32SplashThread.h:20
bool
core
winnt
src
TWin32SplashThread.cxx
ROOT v6-22 - Reference Guide Generated on Fri Apr 1 2022 11:50:39 (GVA Time) using Doxygen 1.9.4