mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 06:29:42 +02:00
* fix for mantis #22283, Wrong bit shift in ListView_GetCheckState (shl instead of shr)
git-svn-id: trunk@22979 -
This commit is contained in:
parent
8168276912
commit
f0fcd4647b
@ -10966,7 +10966,7 @@ end;
|
|||||||
Function ListView_GetCheckState( hwndLV : hwnd; i : WPARAM):UINT;
|
Function ListView_GetCheckState( hwndLV : hwnd; i : WPARAM):UINT;
|
||||||
|
|
||||||
Begin
|
Begin
|
||||||
Result:=(SendMessage((hwndLV), LVM_GETITEMSTATE, (i), LVIS_STATEIMAGEMASK) shl 12) -1;
|
Result:=(SendMessage((hwndLV), LVM_GETITEMSTATE, (i), LVIS_STATEIMAGEMASK) shr 12) -1;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user