Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c6a51b4b
Commit
c6a51b4b
authored
Oct 04, 2004
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 04, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If an animation is already playing do not restart it.
Remove WM_CLOSE handler, it leads to a memory corruption later on.
parent
764ff272
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
19 deletions
+11
-19
animate.c
dlls/comctl32/animate.c
+11
-19
No files found.
dlls/comctl32/animate.c
View file @
c6a51b4b
...
...
@@ -414,8 +414,8 @@ static LRESULT ANIMATE_Play(HWND hWnd, WPARAM wParam, LPARAM lParam)
return
FALSE
;
if
(
infoPtr
->
hThread
||
infoPtr
->
uTimer
)
{
FIXME
(
"Already playing ? what should I do ??
\n
"
);
ANIMATE_DoStop
(
infoPtr
)
;
TRACE
(
"Already playing
\n
"
);
return
TRUE
;
}
infoPtr
->
nFromFrame
=
(
INT
)
LOWORD
(
lParam
);
...
...
@@ -443,10 +443,8 @@ static LRESULT ANIMATE_Play(HWND hWnd, WPARAM wParam, LPARAM lParam)
if
(
GetWindowLongA
(
hWnd
,
GWL_STYLE
)
&
ACS_TRANSPARENT
)
{
HDC
hDC
=
GetDC
(
hWnd
);
infoPtr
->
hbrushBG
=
(
HBRUSH
)
SendMessageA
(
infoPtr
->
hwndNotify
,
WM_CTLCOLORSTATIC
,
0
,
(
LPARAM
)
hWnd
);
ReleaseDC
(
hWnd
,
hDC
);
}
TRACE
(
"Using an animation thread
\n
"
);
...
...
@@ -804,7 +802,7 @@ static LRESULT ANIMATE_Create(HWND hWnd, WPARAM wParam, LPARAM lParam)
InitializeCriticalSection
(
&
infoPtr
->
cs
);
return
0
;
return
TRUE
;
}
...
...
@@ -860,8 +858,10 @@ static LRESULT WINAPI ANIMATE_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LP
case
ACM_OPENA
:
return
ANIMATE_OpenA
(
hWnd
,
wParam
,
lParam
);
/* case ACM_OPEN32W: FIXME!! */
/* return ANIMATE_Open32W(hWnd, wParam, lParam); */
case
ACM_OPENW
:
FIXME
(
"ACM_OPENW: stub!
\n
"
);
/* return ANIMATE_Open32W(hWnd, wParam, lParam); */
return
0
;
case
ACM_PLAY
:
return
ANIMATE_Play
(
hWnd
,
wParam
,
lParam
);
...
...
@@ -870,19 +870,16 @@ static LRESULT WINAPI ANIMATE_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LP
return
ANIMATE_Stop
(
hWnd
,
wParam
,
lParam
);
case
WM_NCCREATE
:
ANIMATE_Create
(
hWnd
,
wParam
,
lParam
);
return
DefWindowProcA
(
hWnd
,
uMsg
,
wParam
,
lParam
);
return
ANIMATE_Create
(
hWnd
,
wParam
,
lParam
);
case
WM_NCHITTEST
:
return
HTTRANSPARENT
;
case
WM_DESTROY
:
ANIMATE_Destroy
(
hWnd
,
wParam
,
lParam
);
return
DefWindowProcA
(
hWnd
,
uMsg
,
wParam
,
lParam
);
return
ANIMATE_Destroy
(
hWnd
,
wParam
,
lParam
);
case
WM_ERASEBKGND
:
ANIMATE_EraseBackground
(
hWnd
,
wParam
,
lParam
);
break
;
return
ANIMATE_EraseBackground
(
hWnd
,
wParam
,
lParam
);
/* case WM_STYLECHANGED: FIXME shall we do something ?? */
...
...
@@ -896,10 +893,6 @@ static LRESULT WINAPI ANIMATE_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LP
}
return
ANIMATE_DrawFrame
(
ANIMATE_GetInfoPtr
(
hWnd
));
case
WM_CLOSE
:
ANIMATE_Free
(
ANIMATE_GetInfoPtr
(
hWnd
));
return
TRUE
;
case
WM_PAINT
:
{
ANIMATE_INFO
*
infoPtr
=
ANIMATE_GetInfoPtr
(
hWnd
);
...
...
@@ -940,8 +933,7 @@ static LRESULT WINAPI ANIMATE_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LP
break
;
case
WM_SIZE
:
ANIMATE_Size
(
hWnd
,
wParam
,
lParam
);
return
DefWindowProcA
(
hWnd
,
uMsg
,
wParam
,
lParam
);
return
ANIMATE_Size
(
hWnd
,
wParam
,
lParam
);
default:
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
))
...
...
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