Commit Graph

153 Commits

Author SHA1 Message Date
Gerald Pfeifer bc588e6a37 comctl32: tooltips: Adjust the type of three loop variables from INT to UINT. 2008-06-23 12:47:23 +02:00
Jason Edmeades f54570fdbd comctl32: Add basic custom draw support for tooltips. 2008-04-03 11:39:52 +02:00
Alexandre Julliard e85f7ed79e comctl32: Tooltips should be top-most windows. 2008-01-23 21:42:33 +01:00
Andrew Talbot 863ffb719b comctl32: Remove unneeded casts. 2008-01-02 12:38:41 +01:00
Andrew Talbot 1bf787d521 comctl32: Remove unneeded casts. 2007-12-03 13:10:21 +01:00
Rob Shearman c6525745f2 comctl32: Fix the tooltips behaviour when TTF_ABSOLUTE isn't specified.
This does not mean to use the current cursor position. Instead, it means
that the left hand edge of balloon tips doesn't have to be exactly the
co-ordinate passed in (i.e. the stem can be as vertical as possible) and
it means non-balloon tips can use smart placement.
2007-11-20 12:28:59 +01:00
Rob Shearman 5ff8e6d7e1 comctl32: Unify the implementation of TOOLTIPS_Show and TOOLTIPS_TrackShow to give tracked tooltips balloon support. 2007-11-20 12:28:59 +01:00
Jason Edmeades 2e72e102a6 comctl32: Fix tooltips uninitialized variables plus wrong positioning. 2007-08-15 10:41:52 +02:00
Jason Edmeades ff826eb14a comctl32: Fix missing tooltips. 2007-08-14 12:29:36 +02:00
Mikołaj Zalewski f53e314180 comctl32: tooltips: Remove broken support for non-NULL-terminated strings in TOOLTIPS_GetDispInfo[AW]. 2007-07-20 11:36:59 +02:00
Michael Stefaniuc 585f863c24 comctl32: Do not use wide character constants. 2007-06-22 12:18:59 +02: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 13cd63af43 comctl32: Constify some variables. 2007-04-03 11:21:45 +02:00
Andrew Talbot 74ab88ca97 comctl32: Replace inline static with static inline. 2007-03-17 20:03:19 +01:00
Alexandre Julliard 10c3a4db67 comctl32: Remove invalid NULL check. 2006-11-21 12:40:39 +01:00
Alexandre Julliard 7cca856315 comctl32: Properly handle negative coordinates for mouse events. 2006-10-25 17:41:48 +02:00
Alexandre Julliard 9d6d54f5e6 comctl32: Position the tooltip window correctly on multi-monitor setups. 2006-10-23 14:38:11 +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
Rein Klazes 8b55e4a662 comctl32: Do not free LPSTR_TEXTCALLBACK tooltip texts. 2006-03-23 17:07:17 +01:00
Dmitry Timoshkov f15abf08ac comctl32: Add a test for the initial tooltip window style settings,
make it pass under Wine.
2005-12-19 17:43:10 +01:00
Francois Gouget 6d442aeb34 Assorted spelling fixes. 2005-11-23 20:14:43 +01:00
Michael Kaufmann e9310da57b Handle WM_PRINTCLIENT.
Don't use SelectClipRgn in WM_PRINTCLIENT.
2005-11-08 12:52:35 +00:00
Frank Richter 9e57091ffa Fix warnings in 64bit. 2005-08-30 10:07:17 +00:00
Peter Berg Larsen 6e3bcb5a54 Replace strncpy with memcpy or lstrcpyn. 2005-04-18 10:30:55 +00:00
Dimitrie O. Paun 67607f9e4c Complete unicodification of the tooltips common control. 2005-03-23 10:24:20 +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
Filip Navara 0e6c60076f - Don't use DrawEdge with NULL device context, it's invalid call and
sets last error.
- Tooltip icons must be destroyed with DestroyIcon and not with
  DeleteObject.
- Rebar cursors must be destroyed with DestroyCursor and not with
  DeleteObject.
2004-12-07 14:27:43 +00:00
Robert Shearman acfd725df4 - Don't leak memory when an app sends TTM_SETTITLE twice.
- An lParam of 0 indicates that the title should be removed.
2004-10-25 21:44:50 +00:00
Ge van Geldorp 109f41aadc Pass correct uiParam for SPI_GETNONCLIENTMETRICS. 2004-10-19 21:09:42 +00:00
Robert Shearman f0509667e9 Use Unicode window messages. 2004-09-17 18:10:13 +00:00
Robert Shearman 8974541d6c - Status update.
- Remove no longer valid comment.
- Minor coding style cleanups.
2004-09-09 00:26:13 +00:00
Robert Shearman 7bc76766cc Implement titles. 2004-09-07 20:43:44 +00:00
Hans Leidekker 411fc5f164 Fix signed/unsigned comparison warnings. 2004-09-02 23:00:53 +00:00
Robert Shearman cdb263e588 Replace GetWindowLong by GetWindowLongPtr. 2004-08-25 17:33:01 +00:00
Ulrich Czekalla e516ce8469 Clear tooltip when text is set to NULL.
Repaint tooltip when item info changes.
2004-08-19 19:13:08 +00:00
Thomas Weidenmüller 0a4d8f7f7d Correct tooltips behavior. 2004-08-12 20:27:01 +00:00
Robert Shearman 41716ce9c1 Start of balloon tip support. 2004-06-28 23:52:37 +00:00
Robert Shearman 83face5d3e - TTM_TRACKACTIVATE can have NULL lParam when deactivating.
- Factor out common code from TOOLTIPS_DelTool{A,W}.
- Update all indices correctly after delete.
2004-04-01 20:59:31 +00:00
Robert Shearman bc2520b3b7 - Unicode notification detection should be local to each tool.
- Implement TTN_GETDISPINFOW notification.
2004-03-15 20:10:00 +00:00
Christian Costa 1fba717981 Accept null module instance, Loadstring can handle it. 2004-02-24 01:04:27 +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
Filip Navara 2773106058 Fixed definitions of TTTOOLINFOA/W_V1_SIZE and
REBARBANDINFOA/W_V3_SIZE.
2003-09-16 01:17:25 +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
Francois Gouget 9591836ffb 'sizeof type' is best avoided as it won't always compile (e.g. 'int
main() {return sizeof int;}'). Use 'sizeof(type)' instead.
2003-06-18 19:45:22 +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
Sander van Leeuwen f9768f4792 Fixed font object leak in WM_SETFONT handler. 2002-10-29 21:28:37 +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
György 'Nog' Jeney 0d3b4906e4 Use the new Subclassing API. 2002-10-02 23:46:20 +00:00
Dimitrie O. Paun 71f99baf22 Add support for the TTM_GETBUBBLESIZE message. 2002-09-09 19:20:05 +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
Mike McCormack 06effbf07a Duplicate the font handle passed through WM_SETFONT, because it does
not belong to us and is not ours to free.
2002-08-13 18:08:15 +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
Christian Costa 751f683f07 TOOLTIPS_GetTipText: Accept null module instance, Loadstring can
handle it.
2002-05-02 21:35:23 +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
Ori Pessach 023b1aae0a Set WS_EX_TOOLWINDOW in a tooltip's dwExStyle. 2002-02-08 17:03:57 +00:00
Sander van Leeuwen 198f1e2f3e Fixed calls with wrong pointer: COMCTL32_Free(&lpttsi) should be
COMCTL32_Free(lpttsi).
2002-01-04 21:27:34 +00:00
Gerard Patel 565ba5899c Do not send a WM_NOTIFYFORMAT to a non-existent owner. 2000-12-19 03:37:02 +00:00
Gerald Pfeifer 1b490b42bf Fixed format strings. 2000-09-24 03:05:11 +00:00
Francois Jacques 27a76c8473 - Make sure tooltips are hidden before deleting them.
- Glitch happened while moving from a tooltip to another (fixed).
2000-09-07 18:38:12 +00:00
Alexandre Julliard c7e7df8b17 Replaced all lstr* calls from inside Wine code by their str* equivalent. 2000-08-14 14:41:19 +00:00
Huw D M Davies 363a75f63a Fix some remaining problems with tooltips. 2000-08-09 22:21:32 +00:00
Alexandre Julliard 70c9e095ef Removed all non-standard common control headers from the include
directory.
2000-08-09 00:41:17 +00:00
Louis Philippe Gagnon 94f74144fd When unsubclassing tools, use toolPtr->hwnd instead of toolPtr->uId if
toolPtr->flags does not contain TTF_IDISHWND (meaning uId is not a
valid window handle).
2000-08-08 20:45:16 +00:00
Huw D M Davies 4e095e6e2b Redo the show/hide logic and add a comment to explain what's going on.
Fix TTM_{S|G}ETDELAYTIME to use the double click time as default.
Fix handling of TTDT_AUTOMATIC.
Relayed mouse messages should extract the position from lParam not
msg.pt
SubclassProc now unified with TTM_RELAYEVENT.
Change all lstrcpyxtox to use win32 APIs.
2000-08-03 22:18:15 +00:00
Alexandre Julliard 53f8c60ee9 Francois Methot (Macadamian)
Fixed the blank color palette tooltip bug by triggering a refresh of
the tooltip with UpdateWindow function instead of calling directly the
refresh function.
2000-05-26 01:16:01 +00:00
Chris Morgan e2099dc987 Fixed tooltips. 2000-05-23 21:12:03 +00:00
Gerard Patel a1b2fc2a80 Protect against use of comctl32 private control memory after it has
been freed.
2000-05-10 01:34:53 +00:00
Sheri Steeves 1e0dfb598b Worked around some tooltips hide problems by checking the current tooltip. 2000-05-05 18:16:35 +00:00
Alexandre Julliard 5f4c9a0023 Patrick Yang (Corel)
infoPtr sometimes can be NULL.
2000-04-24 18:01:27 +00:00
Alexandre Julliard d711ad9e0a Removed superfluous GlobalFindAtom calls. 2000-02-13 15:10:16 +00:00
Francois Gouget e73b8b84ba Wrapped some strings in a debugstr_* call.
Replaced some calls to debugstr_{a,w} by debugstr_{a,w}n.
Removed redundant 'L's for Unicode strings.
Tried to harmonize the traces a little bit.
1999-12-26 00:40:37 +00:00
Joshua Thielen 0c1dea0841 Fixed tooltips positioning. 1999-10-23 19:59:55 +00:00
Francis Beaudet 28a082f6d4 Added sanity checks in the cleanup code. 1999-09-03 12:40:34 +00:00
Patrik Stridvall 26ffb3cd76 Fixed/added missing/wrong function prototypes and made internal
functions static.
1999-07-31 14:41:43 +00:00
Eric Kohl a9e9def079 Started WM_NOTIFYFORMAT support. 1999-06-26 11:50:36 +00:00
Alexandre Julliard a099a555c3 Converted to the new debug interface, using script written by Patrik
Stridvall.
1999-06-12 15:45:58 +00:00
Patrik Stridvall 9e61c1cc9b Changed xxx(VOID) to xxx(void). 1999-06-12 08:27:49 +00:00
Alexandre Julliard 00ced7b092 Authors: Chris Morgan <cmorgan@wpi.edu>, James Abbatiello <abbeyj@wpi.edu>
Fixed a problem when using string resources as tooltext.
1999-05-29 14:13:16 +00:00
Patrik Stridvall 896889f317 ANSI C fixes. 1999-05-08 12:50:36 +00:00
Francois Boisvert 06d4226171 Implementation of WM_GETTEXT and WM_GETTEXTLENGTH in tooltips. 1999-05-08 09:38:52 +00:00
Noel Borthwick abefaa5dd2 Fixed bug with tooltips stealing focus whenever a tooltip was created,
shown, hidden or tracked. The SetWindowPos calls needed to have the
SWP_NOACTIVATE flag set additionally.
1999-04-22 15:22:06 +00:00
Patrik Stridvall b4b9fae671 New debug scheme with explicit debug channels declaration. 1999-04-19 14:56:29 +00:00
Marcus Meissner 3480e4a596 Removed no longer necessary win.h include, added now necessary other
includes (win.h used only by UPDOWN now).
1999-03-16 10:53:11 +00:00
Francis Beaudet e412c63d7a Fixed a slight bug that was included in the change from WND ptr to
hwnd last week.
1999-03-16 10:39:53 +00:00
Eric Kohl cad17ff708 Replaced direct access to the WND structure by corresponding calls to
Win32 functions.
1999-03-12 17:42:50 +00:00
Alexandre Julliard a396029270 Large-scale renaming of all Win32 functions and types to use the
standard Windows names.
1999-02-26 11:11:13 +00:00
Jeff Garzik c3e1f72bac Added missing string.h include. 1999-02-19 15:42:11 +00:00
Marcus Meissner 317af320cf Optimized include/*.h: (recursively) include all headers needed by
this .h file, but only those. Necessary fixes to a lot of .c files,
started optimizing "windows.h" away from some of them. Moved
GetCurrentTask prototype to wine/winbase16.h.
1999-02-17 13:51:06 +00:00
Marcus Meissner 65e1f75f58 Some warnings fixed, one useless VERSION warning removed (winelib). 1999-02-13 17:38:16 +00:00
Eric Kohl 6d1ceb5cc7 Fixed redraw bug for tracking tooltips. 1999-01-24 19:06:35 +00:00
Marcus Meissner 73458b03cd Changed // comments to /* */ so WINE compiles with non-gcc compilers
again.
1998-12-26 12:54:29 +00:00
Eric Kohl 8d1a2ff12c Added global subclassing atom, used by tooltips and updown (not yet). 1998-11-22 18:02:24 +00:00
Eric Kohl 9feb53191d Added support for transparent and tracking tooltips. 1998-10-24 10:46:53 +00:00