diff options
Diffstat (limited to 'prefsize_windows.go')
| -rw-r--r-- | prefsize_windows.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/prefsize_windows.go b/prefsize_windows.go index 5e761ec..cb44f2c 100644 --- a/prefsize_windows.go +++ b/prefsize_windows.go @@ -42,6 +42,10 @@ var stdDlgSizes = [nctypes]dlgunits{ height: 10, }, c_combobox: dlgunits{ + // technically the height of a combobox has to include the drop-down list (this is a historical accident: originally comboboxes weren't drop-down) + // but since we're forcing Common Controls version 6, we can take advantage of one of its mechanisms to automatically fix this mistake (bad practice but whatever) + // see also: http://blogs.msdn.com/b/oldnewthing/archive/2006/03/10/548537.aspx + // note that the Microsoft guidelines pages don't take the list size into account longest: true, height: 12, // from the Visual Studio 2012 offline docs's Win32 layout page; the online page above says 14 }, |
