diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-15 12:49:21 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-15 12:49:21 -0500 |
| commit | 0247935cbf9a6ebed3640d0879f4854b4e7fd8c1 (patch) | |
| tree | 68cb35d33553458e5d93ed95cdc11fe29f6300d1 | |
| parent | a65e5d8743822e370b0e07f6bd44ac78c98de2d0 (diff) | |
Split out combobox and listbox error constants into their own sections of controls_windows.go.
| -rw-r--r-- | controls_windows.go | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/controls_windows.go b/controls_windows.go index 9e32c94..4593e2b 100644 --- a/controls_windows.go +++ b/controls_windows.go @@ -182,13 +182,18 @@ const ( _CB_GETCOMBOBOXINFO = 0x0164 ) +// Combobox errors. +var ( // var so they can be cast to uintptr + // from winuser.h + _CB_ERR = (-1) + _CB_ERRSPACE = (-2) + _CBN_ERRSPACE = (-1) +) + // Combobox WM_COMMAND notificaitons. // TODO filter out notifications not provided in windows 2000 const ( // from winuser.h - _CB_ERR = (-1) - _CB_ERRSPACE = (-2) - _CBN_ERRSPACE = (-1) // TODO this will blow up the Go compiler if it's used _CBN_SELCHANGE = 1 _CBN_DBLCLK = 2 _CBN_SETFOCUS = 3 @@ -358,14 +363,19 @@ const ( _LB_GETLISTBOXINFO = 0x01B2 ) +// Listbox errors. +var ( // var so they can be cast to uintptr + // from winuser.h + _LB_OKAY = 0 + _LB_ERR = (-1) + _LB_ERRSPACE = (-2) + _LBN_ERRSPACE = (-2) +) + // Listbox WM_COMMAND notifications and message returns. // TODO filter out notifications not provided in windows 2000 const ( // from winuser.h - _LB_OKAY = 0 - _LB_ERR = (-1) // TODO this will blow up the Go compiler if it's used - _LB_ERRSPACE = (-2) - _LBN_ERRSPACE = (-2) // TODO this will blow up the Go compiler if it's used _LBN_SELCHANGE = 1 _LBN_DBLCLK = 2 _LBN_SELCANCEL = 3 |
