is there any way of changin the state of a checkbox in a listview without
actually clicking the checkbox. at the moment i'm currently looking at
something like
my($item) = @_;
my %info = $ListView->ItemInfo($item, 4);
$state = $info{-text};
print $state, "\n";
if ($state = "X") {
$Window->ListView->somehowchangethecheckboxto1;
}
and i've looked through the mailing list history but all i've found is
something to change the state of all checkboxes which went like this
my $SendMsg = new Win32::API("user32", "SendMessage", "NNNP", "N");
use constant LVIF_STATE => 0x8;
use constant LVM_SETITEMSTATE => 0x102B;
use constant LVIS_STATEIMAGEMASK => 0xF000;
my $lpPoint = pack("LLLLLALLLL", LVIF_STATE, 0, 0,
0x2000,LVIS_STATEIMAGEMASK, " ", 127, 0, 0, 0);
my $rtn = $SendMsg->Call($ListView->{'-handle'}, LVM_SETITEMSTATE, -1,
$lpPoint);
but i don't really know how to change that to change a single checkbox. any
ideas?
thanx in advance.