2014-02-09 22:22:12 -06:00
|
|
|
// 9 february 2014
|
2014-03-12 20:55:45 -05:00
|
|
|
|
2014-02-19 10:41:10 -06:00
|
|
|
package ui
|
2014-02-09 22:22:12 -06:00
|
|
|
|
|
|
|
import (
|
|
|
|
// "syscall"
|
|
|
|
// "unsafe"
|
|
|
|
)
|
|
|
|
|
2014-02-12 10:29:20 -06:00
|
|
|
/*
|
2014-02-09 22:22:12 -06:00
|
|
|
var (
|
2014-05-26 21:39:30 -05:00
|
|
|
_checkRadioButton = user32.NewProc("CheckRadioButton")
|
2014-02-09 22:22:12 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
func CheckRadioButton(hDlg HWND, nIDFirstButton int, nIDLastButton int, nIDCheckButton int) (err error) {
|
2014-05-26 21:39:30 -05:00
|
|
|
r1, _, err := _checkRadioButton.Call(
|
2014-02-09 22:22:12 -06:00
|
|
|
uintptr(hDlg),
|
|
|
|
uintptr(nIDFirstButton),
|
|
|
|
uintptr(nIDLastButton),
|
|
|
|
uintptr(nIDCheckButton))
|
|
|
|
if r1 == 0 { // failure
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2014-02-14 11:16:27 -06:00
|
|
|
*/
|
2014-02-11 14:18:28 -06:00
|
|
|
|
2014-03-25 01:29:30 -05:00
|
|
|
var (
|
2014-03-25 06:11:10 -05:00
|
|
|
_getScrollInfo = user32.NewProc("GetScrollInfo")
|
2014-03-25 01:29:30 -05:00
|
|
|
_setScrollInfo = user32.NewProc("SetScrollInfo")
|
|
|
|
_scrollWindowEx = user32.NewProc("ScrollWindowEx")
|
|
|
|
)
|
|
|
|
|
|
|
|
type _SCROLLINFO struct {
|
|
|
|
cbSize uint32
|
|
|
|
fMask uint32
|
|
|
|
nMin int32 // originally int
|
|
|
|
nMax int32 // originally int
|
|
|
|
nPage uint32
|
|
|
|
nPos int32 // originally int
|
|
|
|
nTrackPos int32 // originally int
|
|
|
|
}
|