Removed TODOs about the sysData not being initialized at message time in area_windows.go; we have now solved that problem.

This commit is contained in:
Pietro Gagliardi 2014-05-30 23:41:35 -04:00
parent b13453ad9e
commit 2ec0460ac6
1 changed files with 5 additions and 16 deletions

View File

@ -612,25 +612,14 @@ func areaWndProc(hwnd _HWND, uMsg uint32, wParam _WPARAM, lParam _LPARAM) _LRESU
// this is to make things flicker-free; see http://msdn.microsoft.com/en-us/library/ms969905.aspx // this is to make things flicker-free; see http://msdn.microsoft.com/en-us/library/ms969905.aspx
return 1 return 1
case _WM_HSCROLL: case _WM_HSCROLL:
// TODO make this unnecessary scrollArea(s, wParam, _SB_HORZ)
if s != nil && s.hwnd != 0 { // this message can be sent before s is assigned properly
scrollArea(s, wParam, _SB_HORZ)
}
return 0 return 0
case _WM_VSCROLL: case _WM_VSCROLL:
// TODO make this unnecessary scrollArea(s, wParam, _SB_VERT)
if s != nil && s.hwnd != 0 { // this message can be sent before s is assigned properly return 0
scrollArea(s, wParam, _SB_VERT)
return 0
}
return defWindowProc(hwnd, uMsg, wParam, lParam)
case _WM_SIZE: case _WM_SIZE:
// TODO make this unnecessary adjustAreaScrollbars(s)
if s != nil && s.hwnd != 0 { // this message can be sent before s is assigned properly return 0
adjustAreaScrollbars(s)
return 0
}
return defWindowProc(hwnd, uMsg, wParam, lParam)
case _WM_ACTIVATE: case _WM_ACTIVATE:
// don't keep the double-click timer running if the user switched programs in between clicks // don't keep the double-click timer running if the user switched programs in between clicks
s.clickCounter.reset() s.clickCounter.reset()