summaryrefslogtreecommitdiff
path: root/common_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-26 22:36:34 -0400
committerPietro Gagliardi <[email protected]>2014-05-26 22:36:34 -0400
commit9c86bf8d30b8f858d7d26ef3b8e1890a3cc96704 (patch)
tree8c4153b9341fb0cecbaaeea629cdc4afe0376656 /common_windows.go
parent568d7d02eef1f27fa47c4c1871e843371e402077 (diff)
Merged windows_windows.go into common_windows.go.
Diffstat (limited to 'common_windows.go')
-rw-r--r--common_windows.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/common_windows.go b/common_windows.go
index 65f8451..2a403c7 100644
--- a/common_windows.go
+++ b/common_windows.go
@@ -70,3 +70,26 @@ type _RECT struct {
func negConst(c int) uintptr {
return uintptr(c)
}
+
+var (
+ _adjustWindowRectEx = user32.NewProc("AdjustWindowRectEx")
+ _createWindowEx = user32.NewProc("CreateWindowExW")
+ _getClientRect = user32.NewProc("GetClientRect")
+ _moveWindow = user32.NewProc("MoveWindow")
+ _setWindowLong = user32.NewProc("SetWindowLongW")
+ _setWindowPos = user32.NewProc("SetWindowPos")
+ _setWindowText = user32.NewProc("SetWindowTextW")
+ _showWindow = user32.NewProc("ShowWindow")
+)
+
+type _MINMAXINFO struct {
+ ptReserved _POINT
+ ptMaxSize _POINT
+ ptMaxPosition _POINT
+ ptMinTrackSize _POINT
+ ptMaxTrackSize _POINT
+}
+
+func (l _LPARAM) MINMAXINFO() *_MINMAXINFO {
+ return (*_MINMAXINFO)(unsafe.Pointer(l))
+}