diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-10 12:53:23 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-10 12:53:23 -0400 |
| commit | 865a0ec662d280884d61b1c40818551f66ad58c1 (patch) | |
| tree | 9543c6913d7ac79bf69b9c9f183fdaa7d82c36cf /prefsize_windows.go | |
| parent | 013e8707dac20dee4c72840989b69757bf26e72b (diff) | |
"Fixed" the zero-size Combobox drop-down on Windows by having Windows fix it for us (and since we did everything we need to do to get it to fix it for us, it was already fixed!).
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 }, |
