CheckBoxes returns if the *TableView has check boxes.
()
| 945 | |
| 946 | // CheckBoxes returns if the *TableView has check boxes. |
| 947 | func (tv *TableView) CheckBoxes() bool { |
| 948 | var hwnd win.HWND |
| 949 | if tv.hasFrozenColumn { |
| 950 | hwnd = tv.hwndFrozenLV |
| 951 | } else { |
| 952 | hwnd = tv.hwndNormalLV |
| 953 | } |
| 954 | |
| 955 | return win.SendMessage(hwnd, win.LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0)&win.LVS_EX_CHECKBOXES > 0 |
| 956 | } |
| 957 | |
| 958 | // SetCheckBoxes sets if the *TableView has check boxes. |
| 959 | func (tv *TableView) SetCheckBoxes(checkBoxes bool) { |
no test coverage detected