Commit Graph

168 Commits

Author SHA1 Message Date
Mike Hearn b27587dd0a TREEVIEW_GetItemA should ignore stateMask. 2003-03-26 23:35:50 +00:00
Mike Hearn 044a353161 Correct the check for changed treeview items, so item sets repaint
properly.
2003-03-26 01:22:10 +00:00
Adam Gundy 292d8429ab TREEVIEW_UpdateScrollBars() now copes with an empty tree. 2003-03-06 22:41:59 +00:00
Tim Segall efa2b0c159 Accept either TVI_ROOT or NULL for the parent to imply sort the entire
tree.
2003-02-25 03:59:12 +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
Dimitrie O. Paun 297f3d898d Define NONAMELESS{STRUCT,UNION} explicitly in the files that need them. 2003-01-07 20:36:20 +00:00
Rolf Kalbermatter 6c79930413 Add config.h/port.h to allow compilation/linking in MSVC.
Fix some unsigned/signed warnings.
2002-12-16 22:43:58 +00:00
Francois Gouget d2667a4ce3 Removed unnecessary HANDLE typecasts. 2002-12-02 18:10:57 +00:00
Dimitrie O. Paun d2e881d543 - Typesafe parameters from TREEVIEW_NotifyFormat.
- Rewrite TREEVIEW_NotifyFormat.
- Fix several invocations of TREEVIEW_SendTreeviewNotify.
2002-11-27 20:15:49 +00:00
Dimitrie O. Paun 4bbd7b3e26 Fix some treeview notification codes between ANSI/Unicode mode. 2002-10-31 00:54:53 +00:00
Dimitrie O. Paun 02af550a2a Send the right notification code (A/W) depending on the Unicode
setting.
2002-10-29 21:25:35 +00:00
Andreas Mohr 6e256c72fe - fix some pselling
- enhance some TRACEs
2002-10-25 19:09:02 +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
Guy L. Albertelli b4994d18e9 - Preliminary implementation of TVS_NOSCROLL and TVS_NOHSCROLL
- Implement A and W versions of WM_NOTIFY based on response to
  WM_NOTIFYFORMAT. Note that the EDITLABEL notifies are not done.
- Implement WM_NOTIFYFORMAT.
2002-03-20 01:29:04 +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
Andreas Mohr 8bc7f16caa Spelling/alignment fixes. 2002-02-27 01:34:08 +00:00
Aric Stewart 9d366f1f40 Added implementation of SetItemW. 2002-02-04 18:37:32 +00:00
Aric Stewart 5a64f285f2 Fix to GetItemW to stop whiping out the items text. 2002-02-01 19:54:10 +00:00
Bill Medland 32ca21caaa A treeview item may be TVI_ROOT. 2001-12-11 00:15:11 +00:00
Gerard Patel ede9881523 Do not keep the handle of a deleted item as the selectedItem.. 2001-08-20 18:00:54 +00:00
Guy L. Albertelli be73d10dc5 Add support to respond to the PGN_CALCSIZE version of the WM_NOTIFY
message.
2001-08-13 20:08:21 +00:00
Francois Gouget e76218dd61 Add '\n' at the end of traces. 2001-05-09 17:31:31 +00:00
Gerard Patel f6d3d0172d After an item text changes, the rectangle width should be
recalculated.
2001-04-09 18:28:47 +00:00
Gerard Patel 9c2d2bad90 Erase the in-memory DC for treeview and fixes the rectangle calculation. 2001-04-04 00:09:23 +00:00
Aric Stewart 79a11a1f21 Insert the item before calling a SetFirstVisible which can generate a
WM_PAINT message.
2001-02-20 23:43:21 +00:00
François Gouget 2ad985527f Handle WM_CHARs and pass them to TREEVIEW_ProcessLetterKeys. See also
LISTVIEW_ProcessLetterKeys in listview.c.
2001-02-12 18:08:08 +00:00
Alexandre Julliard 24a62ab9b0 Got rid of the Wine internal lstrcpy* functions and of winestring.h. 2000-11-28 22:40:56 +00:00
Aric Stewart cf94bf88c2 Treeview item sorting could mess up the visibleOrder of the items. 2000-11-02 20:09:43 +00:00
Alexandre Julliard 908464d448 Authors: Andreas Mohr <amohr@codeweavers.com>, Dimitrie O. Paun <dimi@cs.toronto.edu>, Patrik Stridvall <ps@leissner.se>
Various warning fixes.
2000-11-01 03:11:12 +00:00
Francois Gouget 7203ee6623 Use PS_ALTERNATE rather than PS_DOT.
Use Rectangle to draw focus rectangles.
2000-10-31 02:05:11 +00:00
Susan Farley 4dc7f4ca06 Under some conditions its necessary to explicitly show the
scrollbars.
2000-10-31 01:02:05 +00:00
Susan Farley 8d8c87b85a - When inserting an item, do not invalidate the area above the new
item.
- The debug function that verifies the tree after each insertion
  should be disabled by default.
2000-10-25 20:30:58 +00:00
Uwe Bonnes 4bfc2a8a2d Remember owner HWND when creating and use this hwnd for the WM_NOTIFY
message target.
2000-10-17 00:29:18 +00:00
Louis Philippe Gagnon d41e22bf0d Do not send a WM_CONTEXTMENU message when a TreeView receives a
WM_RBUTTONUP.
2000-10-13 23:07:08 +00:00
Susan Farley 036ae0b6b3 To improve custom-drawn items, add focus border to itemRects and do
not overlap them.
2000-10-13 20:13:38 +00:00
Susan Farley 3bd7f58706 On InsertItem with TVI_FIRST, the check for resetting firstVisible
must be done *before* the parent's firstChild changes.
2000-10-12 23:11:06 +00:00
Alexandre Julliard 83f52d11c1 Moved all Win16 definitions out of the standard Windows headers. 2000-09-26 22:20:14 +00:00
Alexandre Julliard 072dfb57e3 Removed inclusion of wine/winestring.h from winbase.h and added it to
the C files that need it.
2000-09-25 23:30:56 +00:00
Chris Morgan 36c8db8c7d Fix behavior of TVS_SINGLEEXPAND style broken in Corel merge. Optimize
redrawing in TREEVIEW_SetItemA() to redraw only if the item changes.
2000-09-22 20:48:15 +00:00
Chris Morgan 5f9fd77db3 Merged main Wine changes into Corel's treeview control rewritten by
Serge Ivanov and Andrew Lewycky.  Fixed item focus behavior to match
Windows.  Fixed item selection when un/expanding items.  Implemented
WM_SETREDRAW.  Added Corel's COMCTL32_CreateToolTip() helper function
to commctrl.c.
2000-09-13 20:27:30 +00:00
Andreas Mohr 217a682b4f Minor cosmetic changes. 2000-08-25 21:56:19 +00:00
Chris Morgan 33b668095b Removed direct calls to TREEVIEW_Refresh(). 2000-08-20 03:40:21 +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
Alexandre Julliard 70c9e095ef Removed all non-standard common control headers from the include
directory.
2000-08-09 00:41:17 +00:00
Alexandre Julliard 15d9a60246 Serge Ivanov
Andrew Lewycky
Improved drawing of item text, added SHOWSELALWAYS capability.
2000-08-01 23:31:17 +00:00
Susan Farley 1da10fdca8 More consistent calculation of line height, scrolls a full item on
line up/down.
2000-08-01 22:01:11 +00:00
Noomen Hamza 6e027cbbec WM_PAINT should be processed only by the TREEVIEW_Paint function, so
we don't need to call DefWindowProcA function within TREEVIEW_Paint.
2000-06-18 17:20:11 +00:00
Aric Stewart 19f83e2f6a Properly handle InsertItem with an invalid HTREEITEM. Windows handles
these like a TVI_LAST.
2000-06-08 19:21:41 +00:00
Patrik Stridvall c94e086161 Fixed some warnings. 2000-06-07 02:16:47 +00:00
Eric Kohl b7b4aed3f1 Implemented TVM_GETITEMW. 2000-06-03 21:05:47 +00:00
Gerard Patel bfd5b31a0e Fixes crash when calling Treeview_EndEditLabelNow and no node is
currently edited.
2000-05-25 23:00:46 +00:00
Aric Stewart 4b40a7dc8f Added handling for TVS_SINGLEEXPAND. 2000-05-24 21:02:50 +00:00
David Black 2b44191367 Implemented TVM_EDITLABELA, plus some improvements to EndLabelEditNow. 2000-05-14 23:50:00 +00:00
Aric Stewart 0406a08cdc Clean up the drawing code after a label update. There were problems if
the new label is shorter that the old label fragments of the old label
were left drawn.
2000-05-11 00:07:44 +00:00
Aric Stewart ebf34ae4ba Allow the user to cancel label editing with esc and confirm with return. 2000-05-10 21:53:19 +00:00
Aric Stewart f7a51e1e3a - Wine was not properly reporting back the edited label to the
application in a treeview when the label is a callback.
- Because windows applications assume they get a new edit control
  every time they often subclass that edit box willy-nilly and do not
  clean up. So it is necessary to actually give them a new edit control
  each time.
2000-05-10 21:42:21 +00:00
Huw D M Davies 2be78d412f Fixed DC leak. 2000-05-05 18:18:31 +00:00
Stephane Lussier 30316dd5f6 Mousewheel support. 2000-04-19 16:45:30 +00:00
Serge Ivanov 1db182f20b Added proper handling TVIS_OVERLAYMASK flag and allows to display
overlay images. Fixed off by one error with listitem in
TREEVIEW_InsertItemA (uNumItems is 0 based, cChildren is a count).
2000-04-15 20:36:15 +00:00
Huw D M Davies 0c3594a9a6 Clear TopRootItem when whole tree is deleted.
Fix off by one lstrcpyn.
Clean up and fix GetNextItem.
2000-04-13 15:56:09 +00:00
Serge Ivanov 39ec6e48f9 TreeView - minor bugfix and optimization:
- GetDC call moved down to avoid possible resource leak.
   - Invariant code is moved out of loop.
2000-04-11 19:37:01 +00:00
Francois Gouget 98f86fcda4 Explicitly use the TVN_xxxA version of the macros. 2000-03-19 21:16:00 +00:00
Alex Priem d5a50a3cea Fixed off-by-one error. 2000-02-13 15:02:43 +00:00
Andreas Mohr 8cd93514f0 - add some documentation items
- fix some spelling
- fix some warnings
2000-01-29 21:12:58 +00:00
Alex Priem 504cfe51d3 InfoPtr checking mixed up WM_DESTROY and WM_CREATE. 2000-01-12 04:55:27 +00:00
Alex Priem f1a3f1752d - When processing WM_PAINT messages, the treeview might sometimes use
the wrong hdc. Fixed.
- Better checking for TREEVIEW_INFO *infoPtr=NULL.
  Similar to code in toolbar.c
- Other small fixes (subclassed edit control).
2000-01-05 01:48:56 +00:00
Alex Priem e6e71ad4e6 - (final?) update of TreeView_* macro's.
- implementation of TVM_SETINSERTMARK & TVM_SETINSERTMARKCOLOR
- fixed some typo's
- custom draw enhancements
- implementation of state images
- implementation of TVS_CHECKBOXES
1999-11-28 19:50:01 +00:00
Alex Priem 07be70b456 - fixed crash when adding items with TVI_SORT and wineItem->pszText is
set to LPSTR_TEXTCALLBACK.
- ditto for TREEVIEW_DeleteItem, TREEVIEW_CreateDragImage.
1999-11-21 00:47:43 +00:00
David Grant 977392c4a2 - Proper initialization of cchTextMax field was added for
TVN_GETDISPINFO notification message.
- TVM_SETITEM should update 'mask' field to synchronize it with
  current item state.
1999-11-07 05:36:44 +00:00
Ulrich Czekalla dfd13e2fb6 - Treeview uses COLOR_WINDOW color instead of clrBk to fill background.
- Treeview: colors returned by TVM_GET**COLOR are mixed up.
1999-10-31 01:52:42 +00:00
Ulrich Czekalla c87736df1f Prevent self referencing next pointer during insert. 1999-10-13 12:26:37 +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 f9b580701f Some more messages. 1999-07-31 13:09:40 +00:00
Francois Boisvert 56c36e3dc7 Implemented TREEVIEW_InsertItemW. 1999-07-24 12:14:51 +00:00
Alex Priem e74f219da6 - Implementation of simple comctl32 v5.0 changes.
- TVM_SORTCHILDRENCB also accepts TVI_ROOT as a valid hParent.
1999-07-18 18:31:05 +00:00
Alex Priem 23dc2e6a73 Fix a hang when we process WM_STYLECHANGED.
Small optimization in TREEVIEW_DrawItem.
Fix debugging crash in TREEVIEW_Expand.
1999-07-15 14:30:55 +00:00
Alex Priem e5ea09c17f Implementation of TVM_SORTCHILDREN. Massaged TVM_SORTCHILDRENCB a bit
to use the same code path.
1999-07-10 10:19:48 +00:00
Alex Priem 124b61904f Fix a crash when doing sorted inserts at top level. 1999-07-03 15:42:33 +00:00
Patrik Stridvall 1ed4ecffa8 ANSI C fixes.
Removed warnings.
Made the include files self-sufficient.
Some Solaris fixes.
1999-06-26 14:58:24 +00:00
Eric Kohl 04a7c56757 Added check for invalid parent item. 1999-06-26 11:55:56 +00:00
Eric Pouech 13a30bace7 Thou shalt not use C++ comments. 1999-06-22 19:09:55 +00:00
Alexandre Julliard 49080d3b59 Authors: Chris Morgan <cmorgan@wpi.edu>, James Abbatiello <abbeyj@wpi.edu>
Adds some undocumented behavior to TREEVIEW_GetItemA().
1999-06-13 08:40:45 +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
Marcus Meissner c5ef0cedf9 Fixed >> and * operator precedence problem. 1999-06-07 17:40:39 +00:00
Patrik Stridvall 896889f317 ANSI C fixes. 1999-05-08 12:50:36 +00:00
Patrik Stridvall a9a671d7ca Fixed ANSI compabillity. 1999-04-25 19:01:52 +00:00
Patrik Stridvall b4b9fae671 New debug scheme with explicit debug channels declaration. 1999-04-19 14:56:29 +00:00
Sylvain St.Germain 9024526d94 Fixed the messaging problem of the edit box for node label edition.
Substituted WM_PAINT for InvalidateRect.
Some graphical fixes.
1999-04-10 16:35:30 +00:00
Marcus Meissner 6400755f0c Missing WINAPI. 1999-03-25 16:41:03 +00:00
Sylvain St.Germain 99b118a216 Implementation of TVM_SORTCHILDRENCB.
Implementation of TVI_SORT insertion.
Fix display problem when TVIF_IMAGE|TVIF_SELECTEDIMAGE were not set.
Fix problems related to TVIS_EXPANDEDONCE.
1999-03-25 10:55:01 +00:00
Sylvain St.Germain 49c1ca28d4 Implements +/-, PgUp/PgDown, Home/End, Left/Right, Up/Down. 1999-03-18 17:30:44 +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
Sylvain St.Germain 02300aeaa5 Fixed some graphical problems of the treeview and added support LMB
click on +/- sign to open and close.
Fixed a bug in imagelist where the last image could not be displayed.
1999-03-16 10:38:44 +00:00
Sylvain St.Germain 26a83df8eb Removed direct access to the WND struct. 1999-03-12 17:08:11 +00:00
Marcus Meissner de43ef45ec Fixed a lot of warnings using WINE_UNUSED, casts, commenting out and
additional {}. Rewrote GetCreationModeFromSTGM so we don't get
"possible use of uninitialized variable".
1999-02-28 19:56:59 +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