Commit Graph

87 Commits

Author SHA1 Message Date
Alexandre Julliard 9510f97935 comctl32: Process messages while waiting for the animation thread to finish. 2008-02-11 20:41:40 +01:00
Rob Shearman 2a56d15997 comctl32: Move the getting of the DC outside of ANIMATE_DrawFrame.
This allows the handle to the DC to be passed in the WM_CTLCOLORSTATIC 
message sent to the parent.
2008-02-07 13:52:38 +01:00
Rob Shearman 5c517a20b7 comctl32: Don't get the background colour in ANIMATE_PaintFrame as this can be called inside a critical section.
This could therefore create a deadlock if the processing for 
WM_CTLCOLORSTATIC ends up sending certain messages to the animate control.

So move the retrieval of the background colour into the callers of 
ANIMATE_PaintFrame but outside of any critical section.
2008-02-06 23:24:40 +01:00
Rob Shearman 53c6cdf918 comctl32: Get the background colour in ANIMATE_PaintFrame, instead of just in WM_PAINT.
This fixes the rendering of transparent animations when using a 
background thread.
2008-02-04 13:04:40 +01:00
Rob Shearman 8cda4a8d90 comctl32: In certain circumstances, native comctl32's animation control accepts negative start positions for the ACM_PLAY message.
These circumstances seems to be after a seek is performed, but we play
it safe and allow negative start positions to be treated as zero always.
2008-02-04 13:03:05 +01:00
Austin English c2a7914d1c comctl32: Spelling fixes. 2008-01-24 11:43:02 +01:00
Rob Shearman 1030d41279 comctl32: Support seeking to a particular frame.
In this case just draw the frame without starting the timer thread of 
setting a timer and without sending any notifications.
2008-01-16 15:34:52 +01:00
Rob Shearman 92dde89506 comctl32: Keep on displaying the last frame of the animation after the animation has stopped. 2008-01-16 15:34:33 +01:00
Dmitry Timoshkov 3c9e7a7f33 wine: Switch to using 'long' for INT_PTR type for 64-bit compatibility. 2007-05-25 20:37:56 +02:00
Andrew Talbot 9a76763c90 comctl32: Constify some variables. 2007-04-02 11:36:23 +02:00
Andrew Talbot 62545611b2 comctl32: Constify some variables. 2007-03-21 11:59:37 +01:00
Jan Zerebecki fa86532354 comctl32: Add DebugInfo to critical section. 2007-02-23 11:58:07 +01:00
Francois Gouget 9fe4673347 Don't include windows.h & co in the Wine sources.
Remove uneeded COM_NO_WINDOWS_H defines.
2006-10-24 17:47:09 +02:00
Michael Ploujnikov 1c16d83379 comctl32: Win64 printf format warning fixes. 2006-10-14 20:17:06 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
qingdoa daoo 5e18834217 comctl32: Change return code comparison in AVI control. 2006-04-14 19:35:57 +02:00
Michael Kaufmann e9310da57b Handle WM_PRINTCLIENT.
Don't use SelectClipRgn in WM_PRINTCLIENT.
2005-11-08 12:52:35 +00:00
Dmitry Timoshkov 66f603ce4b Call SetDIBits with a proper DC in order to set bitmap bits. 2005-09-18 11:12:00 +00:00
Frank Richter 9e57091ffa Fix warnings in 64bit. 2005-08-30 10:07:17 +00:00
Dimitrie O. Paun 8df71a6cfa Use {Alloc,ReAlloc,Free}() instead of Heap{Alloc,ReAlloc,Free}(). 2005-03-25 20:49:00 +00:00
Dimitrie O. Paun ad23586ce1 Pull the WM_TIMER handling into its own function.
ANIMATE_DrawFrame shouldn't worry about locking, the lock should be
held by the caller.
2005-03-21 11:27:49 +00:00
Dimitrie O. Paun 3e7c8e78dc Delete the critical section when freeing up the infoPtr. 2005-03-21 10:27:58 +00:00
Alexandre Julliard 654eee5291 Revert changes to the painting code, the WM_CTLCOLORSTATIC message
should not be sent from the animation thread.
2005-03-18 10:30:13 +00:00
Dimitrie O. Paun fa241ee719 Audit the control against Comctl32.dll version 6.0.
Proper handling of GWL_STYLE.
Implement WM_CLOSE. Fix WM_SIZE implementation.
Small cleanups.
2005-03-16 19:47:52 +00:00
Dimitrie O. Paun e3335ee7c1 Cleanup and simplify the painting code.
Fix a potential bug along the way.
2005-03-15 15:39:38 +00:00
Dimitrie O. Paun 5294ba5816 Unicodification and typesafe interfaces. 2005-03-14 10:09:24 +00:00
Michael Stefaniuc 5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Ulrich Czekalla 21970dc2f7 Prevent the animation thread from waiting on itself when it stops. 2004-12-01 15:27:18 +00:00
Robert Shearman 8d28e0314c Remove unnecessary WNDPROC casts. 2004-11-06 03:49:03 +00:00
Dmitry Timoshkov c6a51b4b4f If an animation is already playing do not restart it.
Remove WM_CLOSE handler, it leads to a memory corruption later on.
2004-10-04 20:40:12 +00:00
Dmitry Timoshkov 5d460f2761 Do not use GlobalFree for a memory returned by LoadResource. 2004-10-04 19:29:29 +00:00
Robert Shearman cdb263e588 Replace GetWindowLong by GetWindowLongPtr. 2004-08-25 17:33:01 +00:00
Alexandre Julliard cf8a25f0d7 Do not kill the animation thread with TerminateThread, let it finish
properly.
Fixed a couple of races with the animation thread.
2004-03-11 00:41:07 +00:00
Francois Gouget eb10f347e6 Fix a race that caused the Microsoft Viewers 'file extraction'
animation to sometimes have a pink background.
2004-01-13 05:07:56 +00:00
Dimitrie O. Paun c594043316 Make the controls send notifications to the parent window passed to
them in CREATESTRUCT.  Based on a treeview patch by Igor Grahek.
2003-11-20 22:04:13 +00:00
Dimitrie O. Paun 7de279a73a Rename COMCTL32_{Alloc,ReAlloc,Free} to {Alloc,ReAlloc,Free}. 2003-09-22 21:32:33 +00:00
Alexandre Julliard f5cb3dde17 Moved undocumented functions out of the exported commctrl.h. 2003-09-17 20:15:21 +00:00
Alexandre Julliard cf52644a1c Removed the A/W constants for builtin cursors, icons and resource
types since they don't exist on Windows, and added typecasts
everywhere instead.
2003-09-10 03:56:47 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Mike Hearn 266a2f297e Change return code comparison in AVI control (from patch by
stanleyg76@yahoo.com).
2003-04-30 23:59:46 +00:00
Dimitrie O. Paun cef5961d2b Eliminate lots of __WINE__ conditionals from the headers. 2003-01-03 19:12:55 +00:00
Rein Klazes 0e162e4643 Let ANIMATE_OpenA return FALSE (= failure) upon a request to close a
previously opened AVI clip when there isn't one.
2003-01-02 17:54:23 +00:00
Rolf Kalbermatter 4f7ec6335c Typo found by compiling with standard MSVC warning level. 2002-12-13 00:35:44 +00:00
Francois Gouget d2667a4ce3 Removed unnecessary HANDLE typecasts. 2002-12-02 18:10:57 +00:00
Michael Stefaniuc 353529b2c8 - fix the "int format, HANDLE arg" type of warnings for comctl32
- compile the comctl32 dll with -DSTRICT
2002-10-23 22:19:10 +00:00
Michael Stefaniuc f3d1893f80 Add needed casts for a "no warnings" compile of comctl32. 2002-10-23 20:19:22 +00:00
Michael Stefaniuc 025c0b716b Prepare dlls/{comctl32,gdi,msvideo,setupapi,shell32,twain,winmm} for
the conversion of HWND to a void*.
2002-09-06 19:41:17 +00:00
Guy L. Albertelli 23739a339a Don't issue error message if message number in application range. 2002-07-16 01:23:59 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00