diff options
| author | Pietro Gagliardi <[email protected]> | 2015-02-18 01:51:57 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-02-18 01:51:57 -0500 |
| commit | 9f8ae4051603d4d1bab02465c9662236644bb83d (patch) | |
| tree | 224934ad1e4b5c24850f7af11652e2e1c65eeef1 /table_windows.go | |
| parent | 847e9bfd2caacba1c90ee68753d5652abe484501 (diff) | |
Began fixing the new Windows Table. In its current state one bug is fixed and another has been spotted, with the diagnosis coming next.
Diffstat (limited to 'table_windows.go')
| -rw-r--r-- | table_windows.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/table_windows.go b/table_windows.go index 1be54a6..3b8d3dc 100644 --- a/table_windows.go +++ b/table_windows.go @@ -62,7 +62,7 @@ func (t *table) Unlock() { Do(func() { t.RLock() defer t.RUnlock() - C.SendMessageW(t.hwnd, C.tableSetRowCount, 0, C.LPARAM(C.intptr_t(reflect.Indirect(reflect.ValueOf(t.data)).Len()))) + C.gotableSetRowCount(t.hwnd, C.intptr_t(reflect.Indirect(reflect.ValueOf(t.data)).Len())) }) }() } @@ -90,6 +90,7 @@ func tableGetCell(data unsafe.Pointer, tnm *C.tableNM) C.LRESULT { t.RLock() defer t.RUnlock() d := reflect.Indirect(reflect.ValueOf(t.data)) +fmt.Printf("%#v\n", *tnm) datum := d.Index(int(tnm.row)).Field(int(tnm.column)) switch { case datum.Type() == reflect.TypeOf((*image.RGBA)(nil)): |
