Tied Table initialization in. Now to test!
This commit is contained in:
parent
b912afe4e7
commit
1913564fda
|
@ -8,6 +8,11 @@
|
|||
// provided for cgo's benefit
|
||||
LPWSTR xtableWindowClass = tableWindowClass;
|
||||
|
||||
void doInitTable(void)
|
||||
{
|
||||
initTable(xpanic, fv__TrackMouseEvent);
|
||||
}
|
||||
|
||||
static LRESULT CALLBACK tableSubProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT_PTR id, DWORD_PTR data)
|
||||
{
|
||||
NMHDR *nmhdr = (NMHDR *) lParam;
|
||||
|
|
|
@ -36,6 +36,8 @@ func uiinit() error {
|
|||
if err := makeAreaWindowClass(); err != nil {
|
||||
return fmt.Errorf("error creating Area window class: %v", err)
|
||||
}
|
||||
// this depends on the common controls having been initialized already
|
||||
C.doInitTable()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
@ -108,6 +108,7 @@ extern void tabLeaveChildren(HWND);
|
|||
// table_windows.go
|
||||
#include "wintable/includethis.h"
|
||||
extern LPWSTR xtableWindowClass;
|
||||
extern void doInitTable(void);
|
||||
extern void setTableSubclass(HWND, void *);
|
||||
/* TODO
|
||||
extern void tableAutosizeColumns(HWND, int);
|
||||
|
|
Loading…
Reference in New Issue