diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-12 18:53:57 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-12 18:53:57 -0400 |
| commit | 4b0315131aa3b29b453ba671bd9c7be03190746c (patch) | |
| tree | e2ba2d03241dd163788a4edc3b442963d27f1d9e /windows_windows.go | |
| parent | 6ee8d96a6e8c1e95b8ca2ab19fcc6a3a856d50c8 (diff) | |
Added indeterminate ProgressBar code on Windows and fixed up a few other things along the way.
Diffstat (limited to 'windows_windows.go')
| -rw-r--r-- | windows_windows.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/windows_windows.go b/windows_windows.go index 9bdf52c..9ed12f9 100644 --- a/windows_windows.go +++ b/windows_windows.go @@ -105,8 +105,8 @@ const ( _COLOR_INFOBK = 24 _COLOR_INFOTEXT = 23 _COLOR_MENU = 4 - COLOR_MENUHILIGHT = 29 - COLOR_MENUBAR = 30 + _COLOR_MENUHILIGHT = 29 + _COLOR_MENUBAR = 30 _COLOR_MENUTEXT = 7 _COLOR_SCROLLBAR = 0 _COLOR_WINDOW = 5 @@ -168,6 +168,7 @@ var ( _createWindowEx = user32.NewProc("CreateWindowExW") _getClientRect = user32.NewProc("GetClientRect") _moveWindow = user32.NewProc("MoveWindow") + _setWindowLong = user32.NewProc("SetWindowLongW") _setWindowPos = user32.NewProc("SetWindowPos") _setWindowText = user32.NewProc("SetWindowTextW") _showWindow = user32.NewProc("ShowWindow") @@ -241,7 +242,7 @@ const ( ) // WM_STYLECHANGED and WM_STYLECHANGING values (wParam). -const ( +var ( // var because Go won't let me cast a negative const to a uintptr _GWL_EXSTYLE = -20 _GWL_STYLE = -16 ) |
