summaryrefslogtreecommitdiff
path: root/sysdata_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-02 10:15:04 -0400
committerPietro Gagliardi <[email protected]>2014-04-02 10:15:04 -0400
commit973853c835d81a877191e209dcc710a6ec00a412 (patch)
tree5e5adee13c65efb14d2bf4cae4494f3c7b5092c3 /sysdata_windows.go
parent3fe4c2f1138fed8243844391df5fc55dd5933ae4 (diff)
Fixed odd Listbox sizing on Windows. (Windows by default sizes List Box controls so that partial items are not visible.)
Diffstat (limited to 'sysdata_windows.go')
-rw-r--r--sysdata_windows.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdata_windows.go b/sysdata_windows.go
index 15249cd..acc5b52 100644
--- a/sysdata_windows.go
+++ b/sysdata_windows.go
@@ -87,9 +87,10 @@ var classTypes = [nctypes]*classData{
name: "LISTBOX",
// TODO also _WS_HSCROLL?
// we don't use _LBS_STANDARD because it sorts
- style: _LBS_NOTIFY | _WS_BORDER | _WS_VSCROLL | controlstyle,
+ // _LBS_NOINTEGRALHEIGHT gives us exactly the size we want
+ style: _LBS_NOTIFY | _WS_BORDER | _LBS_NOINTEGRALHEIGHT | _WS_VSCROLL | controlstyle,
xstyle: 0 | controlxstyle,
- altStyle: _LBS_EXTENDEDSEL | _LBS_NOTIFY | _WS_BORDER | _WS_VSCROLL | controlstyle,
+ altStyle: _LBS_EXTENDEDSEL | _LBS_NOTIFY | _LBS_NOINTEGRALHEIGHT | _WS_BORDER | _WS_VSCROLL | controlstyle,
appendMsg: _LB_ADDSTRING,
insertBeforeMsg: _LB_INSERTSTRING,
deleteMsg: _LB_DELETESTRING,