summaryrefslogtreecommitdiff
path: root/redo/area_windows.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-13 10:41:27 -0400
committerPietro Gagliardi <[email protected]>2014-08-13 10:41:27 -0400
commitb01c65394202a5377313afe08cd5fb56f0903831 (patch)
tree7616ad8b85e79847c89663ee4f72acfe2d6df47b /redo/area_windows.c
parent59f2eeca22dd15daf9d7765c1709bf926d158faf (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.c6
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);