diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-26 20:20:00 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-26 20:20:00 -0400 |
| commit | 5c002e3d0f0b873d6ca29dfa9e97c09dead54494 (patch) | |
| tree | 41e49640a2b63b08c67180fa520e851e02f0ccd7 /sysdata_windows.go | |
| parent | 700fef758ba004facd408b3919466d196c1132a0 (diff) | |
Allowed tab stops on Windows; see http://blogs.msdn.com/b/oldnewthing/archive/2003/10/21/55384.aspx. Fixes #13
Diffstat (limited to 'sysdata_windows.go')
| -rw-r--r-- | sysdata_windows.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sysdata_windows.go b/sysdata_windows.go index caac1c1..f3ecffe 100644 --- a/sysdata_windows.go +++ b/sysdata_windows.go @@ -87,10 +87,11 @@ var classTypes = [nctypes]*classData{ name: toUTF16("STATIC"), // SS_NOPREFIX avoids accelerator translation; SS_LEFTNOWORDWRAP clips text past the end // controls are vertically aligned to the top by default (thanks Xeek in irc.freenode.net/#winapi) - style: _SS_NOPREFIX | _SS_LEFTNOWORDWRAP | controlstyle, + // also note that tab stops are remove dfor labels + style: (_SS_NOPREFIX | _SS_LEFTNOWORDWRAP | controlstyle) &^ _WS_TABSTOP, xstyle: 0 | controlxstyle, // MAKE SURE THIS IS THE SAME - altStyle: _SS_NOPREFIX | _SS_LEFTNOWORDWRAP | controlstyle, + altStyle: (_SS_NOPREFIX | _SS_LEFTNOWORDWRAP | controlstyle) &^ _WS_TABSTOP, }, c_listbox: &classData{ name: toUTF16("LISTBOX"), @@ -110,7 +111,8 @@ var classTypes = [nctypes]*classData{ }, c_progressbar: &classData{ name: toUTF16(x_PROGRESS_CLASS), - style: _PBS_SMOOTH | controlstyle, + // note that tab stops are disabled for progress bars + style: (_PBS_SMOOTH | controlstyle) &^ _WS_TABSTOP, xstyle: 0 | controlxstyle, doNotLoadFont: true, }, |
