Removed commented-out checkbox stuff from controls_windows.go since we'll be sending messages directly to the checkbox instead. We still have to worry about radio buttons, so I'm not merging controls_windows.go into common_windows.go just yet.
This commit is contained in:
parent
9c86bf8d30
commit
a016114bdf
|
@ -9,24 +9,11 @@ import (
|
|||
|
||||
/*
|
||||
var (
|
||||
checkDlgButton = user32.NewProc("CheckDlgButton")
|
||||
checkRadioButton = user32.NewProc("CheckRadioButton")
|
||||
isDlgButtonChecked = user32.NewProc("IsDlgButtonChecked")
|
||||
_checkRadioButton = user32.NewProc("CheckRadioButton")
|
||||
)
|
||||
|
||||
func CheckDlgButton(hDlg HWND, nIDButton int, uCheck uint32) (err error) {
|
||||
r1, _, err := checkDlgButton.Call(
|
||||
uintptr(hDlg),
|
||||
uintptr(nIDButton),
|
||||
uintptr(uCheck))
|
||||
if r1 == 0 { // failure
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func CheckRadioButton(hDlg HWND, nIDFirstButton int, nIDLastButton int, nIDCheckButton int) (err error) {
|
||||
r1, _, err := checkRadioButton.Call(
|
||||
r1, _, err := _checkRadioButton.Call(
|
||||
uintptr(hDlg),
|
||||
uintptr(nIDFirstButton),
|
||||
uintptr(nIDLastButton),
|
||||
|
|
Loading…
Reference in New Issue