2014-02-08 22:51:11 -06:00
|
|
|
// 8 february 2014
|
2014-03-12 20:55:45 -05:00
|
|
|
|
2014-02-19 10:41:10 -06:00
|
|
|
package ui
|
2014-02-08 22:51:11 -06:00
|
|
|
|
|
|
|
import (
|
2014-02-11 18:09:10 -06:00
|
|
|
// "syscall"
|
2014-02-08 22:51:11 -06:00
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2014-04-13 22:04:53 -05:00
|
|
|
_adjustWindowRectEx = user32.NewProc("AdjustWindowRectEx")
|
2014-02-11 15:14:15 -06:00
|
|
|
_createWindowEx = user32.NewProc("CreateWindowExW")
|
|
|
|
_getClientRect = user32.NewProc("GetClientRect")
|
2014-02-13 04:28:26 -06:00
|
|
|
_moveWindow = user32.NewProc("MoveWindow")
|
2014-03-12 17:53:57 -05:00
|
|
|
_setWindowLong = user32.NewProc("SetWindowLongW")
|
2014-02-11 15:14:15 -06:00
|
|
|
_setWindowPos = user32.NewProc("SetWindowPos")
|
2014-02-12 17:14:37 -06:00
|
|
|
_setWindowText = user32.NewProc("SetWindowTextW")
|
2014-02-11 15:14:15 -06:00
|
|
|
_showWindow = user32.NewProc("ShowWindow")
|
2014-02-08 22:51:11 -06:00
|
|
|
)
|
|
|
|
|
2014-02-11 15:14:15 -06:00
|
|
|
type _MINMAXINFO struct {
|
2014-05-11 10:11:00 -05:00
|
|
|
ptReserved _POINT
|
|
|
|
ptMaxSize _POINT
|
|
|
|
ptMaxPosition _POINT
|
|
|
|
ptMinTrackSize _POINT
|
|
|
|
ptMaxTrackSize _POINT
|
2014-02-11 06:50:00 -06:00
|
|
|
}
|
|
|
|
|
2014-02-11 18:09:10 -06:00
|
|
|
func (l _LPARAM) MINMAXINFO() *_MINMAXINFO {
|
2014-02-11 15:14:15 -06:00
|
|
|
return (*_MINMAXINFO)(unsafe.Pointer(l))
|
2014-02-11 06:50:00 -06:00
|
|
|
}
|