diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-11 16:17:17 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-11 16:17:17 -0500 |
| commit | 9b19ee72457586e41da5788f802c6bc55ea7a84b (patch) | |
| tree | eea575b4db46d314f27a1da3044a25dea7787dc7 /unmigrated/painting_windows.go | |
| parent | 9794814e9375e597d087b94e9643c943f7999f9c (diff) | |
Moved things that I haven't migated yet out of the way for now.
Diffstat (limited to 'unmigrated/painting_windows.go')
| -rw-r--r-- | unmigrated/painting_windows.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/unmigrated/painting_windows.go b/unmigrated/painting_windows.go new file mode 100644 index 0000000..069fd2d --- /dev/null +++ b/unmigrated/painting_windows.go @@ -0,0 +1,20 @@ +// 9 february 2014 +package main + +import ( +// "syscall" +// "unsafe" +) + +var ( + updateWindow = user32.NewProc("UpdateWindow") +) + +// TODO is error handling valid here? MSDN just says zero on failure; syscall.LazyProc.Call() always returns non-nil +func UpdateWindow(hWnd HWND) (err error) { + r1, _, err := updateWindow.Call(uintptr(hWnd)) + if r1 == 0 { // failure + return err + } + return nil +} |
