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
Julian Smart
37b53d2a7b
Patches from "Viktor Voroshylo" <viktor@voroshylo.com>
...
isses with context menu on real PocketPC device
static text not showing full message under WinCE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-02 08:56:47 +00:00
Julian Smart
80a81a12af
WinCE patches from "Viktor Voroshylo" <viktor@voroshylo.com>
...
1) to take care of ShowFullScreen.
2) will make WinCE context menu in listctrl to generate the same event as right click. WinCE does not have right click so I think it is reasonable solution for it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-28 09:19:18 +00:00
Vadim Zeitlin
54759554d3
use LVSICF_NOINVALIDATEALL in SetItemCount() to reduce flicker
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-12 11:19:18 +00:00
Vadim Zeitlin
d2ed74b912
send END_EDIT label if label editing is cancelled
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-07 08:41:54 +00:00
Vadim Zeitlin
cb0afb2662
replaced wxNO_FULL_REPAINT_ON_RESIZE with wxFULL_REPAINT_ON_RESIZE in XTI declarations
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 00:41:06 +00:00
Julian Smart
66b9ec3dab
Applied patch [ 807164 ] fixes for core library
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-18 13:42:22 +00:00
Vadim Zeitlin
ac8d0c118b
added wxVALIDATOR_PARAM and use it to avoid warnings about unused validators when wxUSE_VALIDATORS==0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-15 19:54:51 +00:00
Vadim Zeitlin
a328684392
removed the fudge from GetViewRect(), it isn't needed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 19:36:33 +00:00
Vadim Zeitlin
5db8d758b8
fixed GetItemSpacing() inconsistency by deprecating the old function and adding a new, easier to use, overload
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 16:06:27 +00:00
Vadim Zeitlin
11ebea162a
added wxListCtrl::GetViewRect()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 15:58:41 +00:00
Vadim Zeitlin
bfc8138f91
reverted previous fix for virtual list control with Unicode and MSLU and replaced it with LVM_SETUNICODEFORMAT
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-10 15:05:18 +00:00
Vadim Zeitlin
fa17ced1b5
attempts to fix virtual list control with Unicode and MSLU
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-10 13:20:04 +00:00