Commit graph

80 commits

Author SHA1 Message Date
Nikolay Sivov
48c4edd9ba comctl32/pager: Prevent excessive PGN_CALCSIZE notifications during PGM_SETCHILD.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-21 13:58:13 +02:00
Stefan Dösinger
6926564677 comctl32: Don't touch the new child twice in PGM_SETCHILD.
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-10 22:12:46 +02:00
Nikolay Sivov
14a6c98fd4 comctl32/pager: Don't block window size changes.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-14 12:33:04 +01:00
Nikolay Sivov
948dd848fb comctl32/tests: Basic test for PGN_CALCSIZE.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-14 12:33:04 +01:00
Nikolay Sivov
935db97c24 comctl32: Use wine_dbgstr_rect() to trace RECTs.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-19 21:06:10 +09:00
Nikolay Sivov
5741ebb8fd comctl32/pager: Reduce pointer scope so it doesn't point to inner scope vars (PVS-Studio). 2014-08-18 12:44:59 +02:00
Huw Davies
552ad2d93e comctl32: Propagate the return value of WM_ERASEBKGND. 2014-07-09 10:27:48 +02:00
Alexandre Julliard
3ad9f29e02 comctl32/pager: Don't rely on PGN_CALCSIZE to set the non-scrollable dimension of the control. 2012-11-20 17:18:17 +01:00
Alexandre Julliard
7a78eed463 comctl32/pager: Fix tracking of mouse position inside the buttons. 2012-11-20 16:02:18 +01:00
Alexandre Julliard
f3b8e68296 comctl32/pager: Use DrawFrameControl to paint the buttons. 2012-11-20 16:01:47 +01:00
Alexandre Julliard
5434d069ea comctl32/pager: Fix incorrect use of the ScreenToClient function. 2010-10-05 14:03:48 +02:00
Gerald Pfeifer
34f9b1bc63 comctl32: Remove variable scrollRange which is not really used from PAGER_NCCalcSize. 2010-05-05 10:51:54 +02:00
Michael Stefaniuc
092b892f54 comctl32: HGDIOBJ is interchangeable with other handle types so don't cast. 2008-10-27 11:29:46 +01:00
Michael Stefaniuc
b723e6f6b6 comctl32: Remove the superfluous casting of the LPVOID returned by Alloc(). 2008-10-24 14:24:59 +02:00
Austin English
c531e2abdb Spelling fixes. 2008-04-23 12:31:07 +02:00
Lei Zhang
3980401231 comctl32: Use wine_dbgstr_rect() in traces. 2008-02-07 11:59:53 +01:00
Andrew Talbot
867f254bec comctl32: Remove unneeded casts. 2007-12-31 17:40:45 +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
abf4d3b8cd comctl32: Constify some variables. 2007-04-02 11:37:03 +02:00
Francois Gouget
30e44c85c8 Assorted spelling fixes. 2006-11-07 15:25:24 +01: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
Mike McCormack
2dfe50aa3f comctl32: Fix some gcc 4.1 warnings caused by windowsx.h macros. 2006-03-03 13:18:50 +01:00
Michael Kaufmann
e9310da57b Handle WM_PRINTCLIENT.
Don't use SelectClipRgn in WM_PRINTCLIENT.
2005-11-08 12:52:35 +00:00
Robert Shearman
eb9960f15b Fix a regression in IE where the Favourites menu didn't appear
correctly because the height and width were swapped in the pager
control.
2005-06-25 17:55:15 +00:00
Dimitrie O. Paun
8e276da00f Add Robert Shearman's explanation about WM_NCPAINT.
Move testing comments in a more appropriate place.
2005-03-25 10:25:45 +00:00
Dimitrie O. Paun
d09baae23d Proper handling for GWL_STYLE.
Store and use hwndSelf in the PAGER_INFO.
Pass the infoPtr around instead of hwnd.
Use proper types in the function signatures.
Fix a few return statements.
2005-03-21 10:30:18 +00:00
Paul Vriens
740d6bc3a0 Remove needless check for horizontal or vertical pager. 2005-01-17 13:38:28 +00:00
Eric Pouech
cf1d00bb08 Removed excessive statement (break after return or goto, not useful
break, not needed vars...)
2005-01-09 16:42:53 +00:00
Robert Shearman
3c8fb21807 Document status of control against v6.0 of native version. 2004-09-20 19:10:43 +00:00
Robert Shearman
6a4d392670 - Don't use TrackMouseEvents/WM_MOUSELEAVE API for handling the hot
button; use plain mouse capture instead like native.
- Return only HTTRANSPARENT/HTCLIENT from WM_NCHITTEST and remove
  associated hacks of WM_SETCURSOR, WM_NCLBUTTONDOWN and
  WM_NCLBUTTONUP.
- Refactor state change code so that state changes don't happen as
  side effects from messages such as WM_NCCALCSIZE, instead only from
  user input messages like WM_MOUSEMOVE.
2004-09-16 19:06:36 +00:00
Robert Shearman
50c7fd4e85 - Set hbrBackground class property to same value as native.
- Use Unicode window functions instead of ANSI.
2004-09-14 00:44:38 +00:00
Robert Shearman
cdb263e588 Replace GetWindowLong by GetWindowLongPtr. 2004-08-25 17:33:01 +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
9d61596624 SLOWORD and SHIWORD do not exist on Win32 (reported by Filip Navara). 2003-09-17 04:28:28 +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
Ulrich Czekalla
535e0f6238 Fixed bad non-client calculation. 2003-05-13 22:05:50 +00:00
Dan Kegel
0fd521fee3 Change RECT to use LONG to match win32 standard headers and fix format
strings to use %ld for RECT elements.
2003-01-08 21:09:25 +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
Gregg Mattinson
bac71315d2 Removed non-static structure initializers. 2002-07-03 21:06:58 +00:00
Vincent Béron
9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Alexandre Julliard
4344c368cb Got rid of GetSysColorPen. 2002-05-20 18:15:28 +00:00
Guy L. Albertelli
ec67a95525 - Change traces to trace full window handle and improve some traces.
- Send WM_NOTIFY to parent not to self.
- Implement PGS_AUTOSCROLL via MOUSEMOVE and Timer routines.
2002-05-14 03:50:53 +00:00
Guy L. Albertelli
1251aa79cc - Try to match the native control for the SetBkColor message.
- Correct processing in NCCalcSize message processing.
2002-04-05 21:13:07 +00:00
Guy L. Albertelli
66eda939ee Reanalyze button status during NCCalcSize processing because size of
window may have changed.
2002-03-22 19:11:11 +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