summaryrefslogtreecommitdiff
path: root/wndclass.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-09 14:59:37 -0500
committerPietro Gagliardi <[email protected]>2014-02-09 14:59:37 -0500
commit3482c9c541210dbf0e7bdd5dbf2c6372d5d55162 (patch)
tree8d9595b9c9ce22ed823a1f696a24eb9820aaa100 /wndclass.go
parentecc00bd1f5cb5d97387f762455c6c51afd0f2fae (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.go4
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,