diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-30 17:59:29 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-30 17:59:29 -0400 |
| commit | 4a66f1467bf0ee9a69c0758a53ab6f1425da166d (patch) | |
| tree | f11a897c449cc7634c229e00db0d41a37ba8808d /zconstants_windows_386.go | |
| parent | c543f5639b121bcdae11f681466c030394902f65 (diff) | |
Moved the standard window class (for Window) on Windows to get the sysData pointer from CreateWindowEx() and store it in the window memory instead of being given it via a closure. This will lead to having only one window class for all Windows, which will come next. Also fixed an error in windowsconstgen's output related to GetWindowLongPtr()/SetWindowLongPtr().
Diffstat (limited to 'zconstants_windows_386.go')
| -rw-r--r-- | zconstants_windows_386.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/zconstants_windows_386.go b/zconstants_windows_386.go index c1d88c2..fa0ab76 100644 --- a/zconstants_windows_386.go +++ b/zconstants_windows_386.go @@ -28,6 +28,7 @@ const _ERROR = 0 const _ES_AUTOHSCROLL = 128 const _ES_PASSWORD = 32 const _FALSE = 0 +const _GWLP_USERDATA = -21 const _GWL_STYLE = -16 const _ICC_PROGRESS_CLASS = 32 const _LBS_EXTENDEDSEL = 2048 @@ -140,6 +141,7 @@ const _WM_MBUTTONDOWN = 519 const _WM_MBUTTONUP = 520 const _WM_MOUSEACTIVATE = 33 const _WM_MOUSEMOVE = 512 +const _WM_NCCREATE = 129 const _WM_PAINT = 15 const _WM_RBUTTONDOWN = 516 const _WM_RBUTTONUP = 517 @@ -162,5 +164,5 @@ const _IDC_ARROW = 32512 const _IDI_APPLICATION = 32512 const _INVALID_HANDLE_VALUE = 4294967295 const _NULL = 0 -var _getWindowLongPtr = user32.NewProc("GetWindowLong") -var _setWindowLongPtr = user32.NewProc("SetWindowLong") +var _getWindowLongPtr = user32.NewProc("GetWindowLongW") +var _setWindowLongPtr = user32.NewProc("SetWindowLongW") |
