diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-09 14:59:37 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-09 14:59:37 -0500 |
| commit | 3482c9c541210dbf0e7bdd5dbf2c6372d5d55162 (patch) | |
| tree | 8d9595b9c9ce22ed823a1f696a24eb9820aaa100 /wndclass.go | |
| parent | ecc00bd1f5cb5d97387f762455c6c51afd0f2fae (diff) | |
Added the rest of the skeleton necessary for opening a simple window as well as the code to actually open one. Now for custom window procedures!
Diffstat (limited to 'wndclass.go')
| -rw-r--r-- | wndclass.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wndclass.go b/wndclass.go index 7296369..38ff4ae 100644 --- a/wndclass.go +++ b/wndclass.go @@ -21,7 +21,7 @@ type WNDCLASS struct { type _WNDCLASSW struct { style uint32 - lpfnWndProc WNDPROC + lpfnWndProc uintptr cbClsExtra int cbWndExtra int hInstance HANDLE @@ -39,7 +39,7 @@ func (w *WNDCLASS) toNative() *_WNDCLASSW { } return &_WNDCLASSW{ style: w.Style, - lpfnWndProc: w.LpfnWndProc, + lpfnWndProc: syscall.NewCallback(w.LpfnWndProc), cbClsExtra: w.CbClsExtra, cbWndExtra: w.CbWndExtra, hInstance: w.HInstance, |
