From 8a81650b3da7ce00725336df9e03b38e935c5a65 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 2 Jul 2014 22:53:03 -0400 Subject: Moved it all back; the preemptive multitaksing during an event handler kills us on all platforms. Going to have to restrict ALL GUI accss to happening from one t hread, so going to need to drop uitask entirely and have just a start() callback for startup code and a post() function for posting requests to windows (like channel sends but into a perpetual buffer). --- prevlib/controls_windows.go | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 prevlib/controls_windows.go (limited to 'prevlib/controls_windows.go') diff --git a/prevlib/controls_windows.go b/prevlib/controls_windows.go deleted file mode 100644 index b9c462f..0000000 --- a/prevlib/controls_windows.go +++ /dev/null @@ -1,42 +0,0 @@ -// 9 february 2014 - -package ui - -import ( -// "syscall" -// "unsafe" -) - -/* -var ( - _checkRadioButton = user32.NewProc("CheckRadioButton") -) - -func CheckRadioButton(hDlg HWND, nIDFirstButton int, nIDLastButton int, nIDCheckButton int) (err error) { - r1, _, err := _checkRadioButton.Call( - uintptr(hDlg), - uintptr(nIDFirstButton), - uintptr(nIDLastButton), - uintptr(nIDCheckButton)) - if r1 == 0 { // failure - return err - } - return nil -} -*/ - -var ( - _getScrollInfo = user32.NewProc("GetScrollInfo") - _setScrollInfo = user32.NewProc("SetScrollInfo") - _scrollWindowEx = user32.NewProc("ScrollWindowEx") -) - -type _SCROLLINFO struct { - cbSize uint32 - fMask uint32 - nMin int32 // originally int - nMax int32 // originally int - nPage uint32 - nPos int32 // originally int - nTrackPos int32 // originally int -} -- cgit v1.2.3