From a016114bdfacbf4d30369e78571d9b6fbfcddb98 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 26 May 2014 22:39:30 -0400 Subject: 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. --- controls_windows.go | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/controls_windows.go b/controls_windows.go index e2d153c..da023d3 100644 --- a/controls_windows.go +++ b/controls_windows.go @@ -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), -- cgit v1.2.3