-
Notifications
You must be signed in to change notification settings - Fork 0
/
updown.go
56 lines (48 loc) · 1.28 KB
/
updown.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright 2011 The win Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package win
const UDN_FIRST = ^uint32(720)
const (
UD_MAXVAL = 0x7fff
UD_MINVAL = ^uintptr(UD_MAXVAL - 1)
)
const (
UDS_WRAP = 0x0001
UDS_SETBUDDYINT = 0x0002
UDS_ALIGNRIGHT = 0x0004
UDS_ALIGNLEFT = 0x0008
UDS_AUTOBUDDY = 0x0010
UDS_ARROWKEYS = 0x0020
UDS_HORZ = 0x0040
UDS_NOTHOUSANDS = 0x0080
UDS_HOTTRACK = 0x0100
)
const (
UDM_SETRANGE = WM_USER + 101
UDM_GETRANGE = WM_USER + 102
UDM_SETPOS = WM_USER + 103
UDM_GETPOS = WM_USER + 104
UDM_SETBUDDY = WM_USER + 105
UDM_GETBUDDY = WM_USER + 106
UDM_SETACCEL = WM_USER + 107
UDM_GETACCEL = WM_USER + 108
UDM_SETBASE = WM_USER + 109
UDM_GETBASE = WM_USER + 110
UDM_SETRANGE32 = WM_USER + 111
UDM_GETRANGE32 = WM_USER + 112
UDM_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT
UDM_GETUNICODEFORMAT = CCM_GETUNICODEFORMAT
UDM_SETPOS32 = WM_USER + 113
UDM_GETPOS32 = WM_USER + 114
)
const UDN_DELTAPOS = UDN_FIRST - 1
type UDACCEL struct {
NSec uint32
NInc uint32
}
type NMUPDOWN struct {
Hdr NMHDR
IPos int32
IDelta int32
}