diff options
| author | Pietro Gagliardi <[email protected]> | 2014-10-02 10:05:53 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-10-02 10:05:53 -0400 |
| commit | 982004d05052ef6aadd22dd5c4e7dbca85ab324a (patch) | |
| tree | 517a0f5a5397e6fb886b5e4741aff4fa18ba10d8 /checkbox_windows.go | |
| parent | 09db0bffffded1a68c562b2d6451c2a2b29ac279 (diff) | |
go fmt. Precursor to bug report filing.
Diffstat (limited to 'checkbox_windows.go')
| -rw-r--r-- | checkbox_windows.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/checkbox_windows.go b/checkbox_windows.go index 6b17699..7f8ce85 100644 --- a/checkbox_windows.go +++ b/checkbox_windows.go @@ -10,20 +10,20 @@ import ( import "C" type checkbox struct { - _hwnd C.HWND - _textlen C.LONG - toggled *event + _hwnd C.HWND + _textlen C.LONG + toggled *event } func newCheckbox(text string) *checkbox { // don't use BS_AUTOCHECKBOX here because it creates problems when refocusing (see http://blogs.msdn.com/b/oldnewthing/archive/2014/05/22/10527522.aspx) // we'll handle actually toggling the check state ourselves (see controls_windows.c) hwnd := C.newControl(buttonclass, - C.BS_CHECKBOX | C.WS_TABSTOP, + C.BS_CHECKBOX|C.WS_TABSTOP, 0) c := &checkbox{ - _hwnd: hwnd, - toggled: newEvent(), + _hwnd: hwnd, + toggled: newEvent(), } c.SetText(text) C.controlSetControlFont(c._hwnd) |
