diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-26 22:39:30 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-26 22:39:30 -0400 |
| commit | a016114bdfacbf4d30369e78571d9b6fbfcddb98 (patch) | |
| tree | 7dc153f5f39b61c599cb9cea1ffee8d693e69a4c | |
| parent | 9c86bf8d30b8f858d7d26ef3b8e1890a3cc96704 (diff) | |
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.
| -rw-r--r-- | controls_windows.go | 17 |
1 files 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), |
