Hi, > I finally got it to work based on your suggestions. The main problem is > that the types of wParam and lParam vary depending on the message, > whereas Win32::GUI::SendMessage assumes they are integers.
It's not more true in 0.0.670. I have add a small change for try to autodetect LPARAM parameter. LPARAM can be a string/packed structure or an integer by default. I think this code work like your Win32::API code with Win32::GUI 0.0.670. my $lvItem=pack("IiiII",LVIF_STATE,0,0,LVIS_SELECTED,LVIS_SELECTED); $mw->lvList->SendMessage(LVM_SETITEMSTATE, -1, $lvItem); Laurent.