Tied Table initialization in. Now to test!

This commit is contained in:
Pietro Gagliardi 2015-02-17 21:43:32 -05:00
parent b912afe4e7
commit 1913564fda
3 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,11 @@
// provided for cgo's benefit // provided for cgo's benefit
LPWSTR xtableWindowClass = tableWindowClass; 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) static LRESULT CALLBACK tableSubProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT_PTR id, DWORD_PTR data)
{ {
NMHDR *nmhdr = (NMHDR *) lParam; NMHDR *nmhdr = (NMHDR *) lParam;

View File

@ -36,6 +36,8 @@ func uiinit() error {
if err := makeAreaWindowClass(); err != nil { if err := makeAreaWindowClass(); err != nil {
return fmt.Errorf("error creating Area window class: %v", err) return fmt.Errorf("error creating Area window class: %v", err)
} }
// this depends on the common controls having been initialized already
C.doInitTable()
return nil return nil
} }

View File

@ -108,6 +108,7 @@ extern void tabLeaveChildren(HWND);
// table_windows.go // table_windows.go
#include "wintable/includethis.h" #include "wintable/includethis.h"
extern LPWSTR xtableWindowClass; extern LPWSTR xtableWindowClass;
extern void doInitTable(void);
extern void setTableSubclass(HWND, void *); extern void setTableSubclass(HWND, void *);
/* TODO /* TODO
extern void tableAutosizeColumns(HWND, int); extern void tableAutosizeColumns(HWND, int);