Merged windows_windows.go into common_windows.go.
This commit is contained in:
parent
568d7d02ee
commit
9c86bf8d30
|
@ -70,3 +70,26 @@ type _RECT struct {
|
||||||
func negConst(c int) uintptr {
|
func negConst(c int) uintptr {
|
||||||
return uintptr(c)
|
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))
|
||||||
|
}
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
// 8 february 2014
|
|
||||||
|
|
||||||
package ui
|
|
||||||
|
|
||||||
import (
|
|
||||||
// "syscall"
|
|
||||||
"unsafe"
|
|
||||||
)
|
|
||||||
|
|
||||||
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))
|
|
||||||
}
|
|
Loading…
Reference in New Issue