diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-02 19:57:49 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-02 19:57:49 -0400 |
| commit | 4ac52907715669e8090011053aa7fa1a8f76e8bb (patch) | |
| tree | 13a86e8ecef1bf38b145b310aae319c1372a72aa /sysdata_windows.go | |
| parent | 77b5afe82425151b5cf2b4765c4ec07ef37677a4 (diff) | |
Fixed Listbox and LineEdit borders on Windows. Also more TODOs.
Diffstat (limited to 'sysdata_windows.go')
| -rw-r--r-- | sysdata_windows.go | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/sysdata_windows.go b/sysdata_windows.go index acc5b52..3099a79 100644 --- a/sysdata_windows.go +++ b/sysdata_windows.go @@ -74,9 +74,11 @@ var classTypes = [nctypes]*classData{ }, c_lineedit: &classData{ name: "EDIT", - style: _ES_AUTOHSCROLL | _WS_BORDER | controlstyle, - xstyle: 0 | controlxstyle, - altStyle: _ES_PASSWORD | _ES_AUTOHSCROLL | _WS_BORDER | controlstyle, + // WS_EX_CLIENTEDGE without WS_BORDER will apply visual styles + // thanks to MindChild in irc.efnet.net/#winprog + style: _ES_AUTOHSCROLL | controlstyle, + xstyle: _WS_EX_CLIENTEDGE | controlxstyle, + altStyle: _ES_PASSWORD | _ES_AUTOHSCROLL | controlstyle, }, c_label: &classData{ name: "STATIC", @@ -86,11 +88,11 @@ var classTypes = [nctypes]*classData{ c_listbox: &classData{ name: "LISTBOX", // TODO also _WS_HSCROLL? - // we don't use _LBS_STANDARD because it sorts + // we don't use _LBS_STANDARD because it sorts (and has WS_BORDER; see above) // _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 | _LBS_NOINTEGRALHEIGHT | _WS_BORDER | _WS_VSCROLL | controlstyle, + style: _LBS_NOTIFY | _LBS_NOINTEGRALHEIGHT | _WS_VSCROLL | controlstyle, + xstyle: _WS_EX_CLIENTEDGE | controlxstyle, + altStyle: _LBS_EXTENDEDSEL | _LBS_NOTIFY | _LBS_NOINTEGRALHEIGHT | _WS_VSCROLL | controlstyle, appendMsg: _LB_ADDSTRING, insertBeforeMsg: _LB_INSERTSTRING, deleteMsg: _LB_DELETESTRING, |
