From 0247935cbf9a6ebed3640d0879f4854b4e7fd8c1 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 15 Feb 2014 12:49:21 -0500 Subject: [PATCH] Split out combobox and listbox error constants into their own sections of controls_windows.go. --- controls_windows.go | 24 +++++++++++++++++------- 1 file 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