diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-11 18:50:33 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-11 18:50:33 -0500 |
| commit | 7686c6e599212a38b61134eb685c8a4929db6941 (patch) | |
| tree | 56814eb3f74826c5352e06c36bad22520f2e5fa4 /unmigrated | |
| parent | aa3e2788f3b4db21c13cf17d7d9155408d20e622 (diff) | |
Added the window creation code. Now let's hope this works...
Diffstat (limited to 'unmigrated')
| -rw-r--r-- | unmigrated/painting_windows.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/unmigrated/painting_windows.go b/unmigrated/painting_windows.go deleted file mode 100644 index 069fd2d..0000000 --- a/unmigrated/painting_windows.go +++ /dev/null @@ -1,20 +0,0 @@ -// 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 -} |
