summaryrefslogtreecommitdiff
path: root/common_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-14 12:17:21 -0500
committerPietro Gagliardi <[email protected]>2014-02-14 12:17:21 -0500
commit09f6ec4a668970291915b1bd25b019c638c6f55e (patch)
tree706e1090d051b336544d67a0c4e11c50fc083835 /common_windows.go
parent39442cefebe21b33e7796ffcf9687a8af34c5a20 (diff)
Now that we have sysData.text() we no longer need the getText() that needed to be migrated.
Diffstat (limited to 'common_windows.go')
-rw-r--r--common_windows.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/common_windows.go b/common_windows.go
index fafdc1c..e541c7b 100644
--- a/common_windows.go
+++ b/common_windows.go
@@ -51,29 +51,6 @@ func _MAKEINTRESOURCE(what uint16) uintptr {
return uintptr(what)
}
-/*
-// TODO migrate
-
-// TODO adorn error messages with which step failed?
-func getText(hwnd _HWND) (text string, err error) {
- var tc []uint16
-
- length, err := SendMessage(hwnd, WM_GETTEXTLENGTH, 0, 0)
- if err != nil {
- return "", err
- }
- tc = make([]uint16, length + 1)
- _, err = SendMessage(hwnd,
- WM_GETTEXT,
- WPARAM(length + 1),
- LPARAM(unsafe.Pointer(&tc[0])))
- if err != nil {
- return "", err
- }
- return syscall.UTF16ToString(tc), nil
-}
-*/
-
type _POINT struct {
X int32
Y int32