Forum Discussion

ThunduBeedi's avatar
ThunduBeedi
Occasional Contributor
11 years ago

Error while doing a wChecked() on a SysListView32 list.

Hi,

We are getting the following error while doing a wChecked() property on a SysListView32 list.



"The list view items have no check-boxes.The list view has no extended LVS_EX_CHECKBOXES style"



And we are getting error when we try to use the following piece of code also



"Win32API.SendMessage(oInteraction.guiObject.Handle, LVM_GETITEMSTATE, itemID, LVIS_STATEIMAGEMASK)"



Is there a problem with this piece of code when the list does not extend LVS_EX_CHECKBOXES style?

 

Thank you.

































1 Reply

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Krishna,


     


    As it is specified in the error, the control you work with doesn't have the LVS_EX_CHECKBOXES style. CheckItem gets this error when it tries to work with items of your control and translates it to the log. Most probably, check boxes in your list view are implemented as images which react to clicks.


     


    If there's no way to modify your control and apply this style to it, you can use the ClickItemXY method to click the specified item in the area where the check box attached to it is located.