summaryrefslogtreecommitdiff
path: root/controls_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-02 22:53:03 -0400
committerPietro Gagliardi <[email protected]>2014-07-02 22:53:03 -0400
commit8a81650b3da7ce00725336df9e03b38e935c5a65 (patch)
tree08af843f0460e7226f305cf7162021ef54e8c3f7 /controls_windows.go
parent4dd5ceb11d62bd6b9af4847936314a9d8c45707f (diff)
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).
Diffstat (limited to 'controls_windows.go')
-rw-r--r--controls_windows.go42
1 files changed, 42 insertions, 0 deletions
diff --git a/controls_windows.go b/controls_windows.go
new file mode 100644
index 0000000..b9c462f
--- /dev/null
+++ b/controls_windows.go
@@ -0,0 +1,42 @@
+// 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
+}