listview expert required
Eric Pouech
pouech-eric at wanadoo.fr
Sat Aug 23 03:32:50 CDT 2003
Dimitrie O. Paun wrote:
> On Fri, 22 Aug 2003, Eric Pouech wrote:
>
>
>>some apps of mine needs this to get going:
>>can someone with good listview knowledge confirm ? (or find the correct fix)
>
>
>
> - if (uView == LVS_REPORT && (infoPtr->dwLvExStyle & LVS_EX_FULLROWSELECT))
> + if (uView == LVS_REPORT /*&& (infoPtr->dwLvExStyle & LVS_EX_FULLROWSELECT)*/)
>
> If you do this, you will be able to select a row in REPORT mode when you
> are not in LVS_EX_FULLROWSELECT, when you just click in a sub item.
>
> This is easy enough to test (I can't do it right now, sorry), and if that's
> how the native control behaves, then let's just get rid of it.
>
> What's the problem with your app?
>
but here's the differences I get between running native Win98 comctl and
Wine's builtin
listview: multicolumn, in report mode, without LVS_EX_FULLROWSELECT
extended style
message concerned:
NM_CLICK notification for left click in LV (mainly in a column for any
subitem)
native:
iItem: always set to -1
iSubItem: set to the subItem of the column clicked
builtin:
iItem: set to the row number
iSubItem: always set to 0
(Note: I don't like either the iItem value I get from the native DLL
(didn't test LVM_GETITEMHITTEST information though)
also, as a noted difference, in selection. Wine's only draws a dotted
rect around the selected item (or row in full row select mode). In
native, the rect interior is grayed if the control doesn't have the
focus, and filled in blue if control has the focus.
if everything goes smoothly full code of the app should be posted this
weekend (app will allow, among other things, to enable/disable debug
channels on any running wine app)
A+
--
Eric Pouech
More information about the wine-devel
mailing list