diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-13 10:41:27 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-13 10:41:27 -0400 |
| commit | b01c65394202a5377313afe08cd5fb56f0903831 (patch) | |
| tree | 7616ad8b85e79847c89663ee4f72acfe2d6df47b /redo/area_windows.c | |
| parent | 59f2eeca22dd15daf9d7765c1709bf926d158faf (diff) | |
Made Areas on Windows tab stops and implemented AreaHandler.Defocuses() on Windows.
Diffstat (limited to 'redo/area_windows.c')
| -rw-r--r-- | redo/area_windows.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/redo/area_windows.c b/redo/area_windows.c index f309049..bb988b3 100644 --- a/redo/area_windows.c +++ b/redo/area_windows.c @@ -5,8 +5,6 @@ #include "winapi_windows.h" #include "_cgo_export.h" -#define areaWindowClass L"gouiarea" - static void getScrollPos(HWND hwnd, int *xpos, int *ypos) { SCROLLINFO si; @@ -412,6 +410,8 @@ static LRESULT CALLBACK areaWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM case msgAreaRepaintAll: repaintArea(hwnd); return 0; + case msgAreaDefocuses: + return (LRESULT) areaDefocuses(data); default: return DefWindowProcW(hwnd, uMsg, wParam, lParam); } @@ -445,7 +445,7 @@ HWND newArea(void *data) hwnd = CreateWindowExW( 0, areaWindowClass, L"", - WS_HSCROLL | WS_VSCROLL | WS_CHILD | WS_VISIBLE, + WS_HSCROLL | WS_VSCROLL | WS_CHILD | WS_VISIBLE | WS_TABSTOP, CW_USEDEFAULT, CW_USEDEFAULT, 100, 100, msgwin, NULL, hInstance, data); |
