Commit Graph

385 Commits

Author SHA1 Message Date
Vadim Zeitlin
fbfb8bcc3f added missing consts and pass objects by const reference instead of by value (patch 1205869)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-24 21:43:15 +00:00
Mart Raudsepp
8907154c1a Nuke #pragma implementation/interface's
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Vadim Zeitlin
206391cbab corrected HAVE_NMLVFINDITEM tests, eliminated HAVE_NM_FINDITEM as it's more clear to just redefine NMLVFINDITEM in DMC case
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-04 21:05:01 +00:00
Vadim Zeitlin
73bb565476 don't reserve space in the header for the column image if there is none (patch 1225522)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-28 23:01:36 +00:00
Michael Wetherell
35c2acd4a8 Add wxListCtrl::Get/SetItemFont, patch 1236820 Francesco Montorsi
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-22 22:29:20 +00:00
Julian Smart
3103e8a97e Typo correction patch [ 1208110 ] Lots of typo corrections
Olly Betts


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-31 09:20:43 +00:00
Włodzimierz Skiba
73f91e1e00 DMC typo fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-30 09:17:26 +00:00
Michael Wetherell
2f73fd3816 Uncomment LVN_ODFINDITEM handler for systems that have NMLVFINDITEM or NM_FINDTIEM
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-25 21:15:47 +00:00
Włodzimierz Skiba
ecba67d8f1 Temporary fix, requires missing NMLVFINDITEM on some platforms.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-23 07:15:40 +00:00
Vadim Zeitlin
f0755097fb added support for incremental search in virtual list control (reworked patch 1189571)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-22 21:36:14 +00:00
Michael Wetherell
43e8916ff3 Documentation fixes, patch 1179223 by Andreas Mohr
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-08 14:34:30 +00:00
Vadim Zeitlin
16a0ccd009 use LVS_EX_LABELTIP by default
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-06 00:32:02 +00:00
Julian Smart
2a1f999faf Applied patch [ 1171542 ] access static class members via scoping operator
Paul Cornett: A static class member can be accessed as X::member,
there is no need for an object or pointer (s.member or
p->member). There are also a few bugs with incorrect
usage of wxString::Format and wxString::FromAscii.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-30 16:49:41 +00:00
Vadim Zeitlin
514ee25088 fixed SetColumnWidth() in wxLC_LIST mode (set column to 0, not -1)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-21 10:36:59 +00:00
Vadim Zeitlin
7c3928159c honour stateMask in GetItem() too (patch 1153451)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-08 00:40:06 +00:00
Vadim Zeitlin
4bd6ae0fad extracted check for wxListCtrl in WM_PRINT handler to wxListCtrl itself, base class shouldn't have to worry about its derived classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-19 19:24:46 +00:00
Włodzimierz Skiba
f31a409829 .empty() string decorations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-09 14:19:49 +00:00
Julian Smart
7f1a9dd7f0 Last change undone
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-08 15:38:21 +00:00
Julian Smart
2e3a3b9aff Set m_count to zero in DeleteAllItems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-08 15:03:18 +00:00
Vadim Zeitlin
07763c990e do reset m_count to 0 after deleting all the items in the control (was broken by last commit)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-29 21:26:25 +00:00
Vadim Zeitlin
7a46263195 fixed memory leak with client data when using DeleteAllItems() (bug 1107215)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-25 13:58:01 +00:00
Robin Dunn
63ec176495 Need to reset count when all items are deleted
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-22 22:02:29 +00:00
Ryan Norton
fde548e2d2 fix for [ 1044879 ] wxMSW 2.5.3: memleaks in listctrl.cpp and bug in listctrl sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-06 23:49:28 +00:00
Włodzimierz Skiba
1c6f24145e Correct fix to the compile time assert under OW. Kudos to Vadim to the tip.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 01:20:58 +00:00
Włodzimierz Skiba
7da60d7c18 OW warning fix. Our compile time asserts warns when used within function and dedicated #pragma seems not influence it so they are moved from functions into global space as near as possible.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 21:00:17 +00:00
Vadim Zeitlin
698b34facd don't return wxLIST_HITTEST_ONITEMICON from HitTest() when the muse is clicked to the right of the icon label
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 11:49:37 +00:00
Robin Dunn
611a725ecd Check for an image list before complaining in OnGetItemImage
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-08 16:14:41 +00:00
Vadim Zeitlin
aba3d35e7b don't deprecate SetItemImage() with 3 parameters; just add a default value for the last one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-30 22:27:45 +00:00
Julian Smart
c3627a004d Deprecated SetItemImage with 2 image ids
Deprecated _GET_INFO, _SET_INFO list control events


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-30 19:12:23 +00:00
Vadim Zeitlin
81ce36aa59 more 64 bit correctness fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 09:25:47 +00:00
Vadim Zeitlin
f7df21aadf don't free user data before sending wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS, this prevents user from doing cleanup in his OnDeleteAllItems() handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 10:07:25 +00:00
Vadim Zeitlin
c68f590a2a hack to _really_ fix crashes in comctl32.dll when processing HDN_GETDISPINFO
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 09:59:24 +00:00
Vadim Zeitlin
6e2fef031b fixed SetWindowStyleFlag() to not remove WS_VISIBLE; also refresh the control automatically (closes bug 1019440)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-18 11:03:24 +00:00
Włodzimierz Skiba
77ace0c533 Fix for coordinates in wxEVT_COMMAND_LIST_COL_RIGHT_CLICK [patch #1019696] with test code in the sample.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-03 14:35:45 +00:00
Włodzimierz Skiba
598ddd96f4 Source cleaning: -1/wxID_ANY/wxDefaultCoord, ::, !!, TRUE/true, FALSE/false, whitespaces, tabs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-30 10:18:55 +00:00
Włodzimierz Skiba
5cb598ae20 Fixes to warnings about assigning unused values.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-16 13:19:32 +00:00
Robert Roebling
781a24e82f Compile fixes for HANDHELDPC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-11 19:15:40 +00:00
Julian Smart
655719367a Use old licence name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e Name and version changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Vadim Zeitlin
2f8b21fc87 really fixed crash with strange HDN_GETDISPINFOWs under XP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-21 15:01:07 +00:00
Vadim Zeitlin
af498247c5 make XTI compile with VC6 (patch 896614)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-15 22:51:57 +00:00
Vadim Zeitlin
39c7a53c9b implemented Get(Class)DefaultAttributes()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 00:14:42 +00:00
Vadim Zeitlin
9a63feff3a added wxSetCCUnicodeFormat() and use it in wxTreeCtrl/wxToolBar; also replaced SendMessage(LVM_SETUNICODEFORMAT) with a call to it in wxListCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-20 12:39:04 +00:00
Vadim Zeitlin
b5d43d1d73 use HasFlag() and InXXX() instead of explicit flag testing (patch 899507)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-29 23:24:35 +00:00
Vadim Zeitlin
97c611f847 fixed and documented GetItemText/BackgroundColour() (closes bug 812907)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-08 15:02:22 +00:00
Vadim Zeitlin
5205e26b9b show first item added with InsertItem() correctly (part of patch 833247)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-07 14:31:29 +00:00
Julian Smart
6463b9f539 Reverted patch [ 832096 ] Final separation for GUI and console for Open Watcom
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-15 13:49:22 +00:00
Julian Smart
1169a91932 Applied patch [ 832096 ] Final separation for GUI and console for Open Watcom
(Watcom compiler doesn't like ctor implementation in headers)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 15:33:01 +00:00
Julian Smart
2d36b3d847 WinCE 4 cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-27 17:24:00 +00:00
Václav Slavík
a61d40115f fixed wrong #ifdefs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-08 22:35:42 +00:00