History

windows unicode and scroll wheel

Russ Cox committed 20 years ago

Commit 12ce9a31 parent 37ef3092 files · +10 −4Browse files

Unified · Split

2 files
  1. Make.win32 +1 −1
  2. gui-win32/screen.c +9 −3
Make.win32+1−1
@@ -10,7 +10,7 @@ CC=$(MING)gcc · 9 unmodified lines
10AS=$(MING)as10AS=$(MING)as
11RANLIB=$(MING)ranlib11RANLIB=$(MING)ranlib
12WINDRES=$(MING)windres12WINDRES=$(MING)windres
13CFLAGS=-Wall -Wno-missing-braces -I$(ROOT)/include -I$(ROOT) -I$(ROOT)/kern -c -D_X86_ -DIS_32 -DWINDOWS -O213CFLAGS=-Wall -Wno-missing-braces -I$(ROOT)/include -I$(ROOT) -I$(ROOT)/kern -c -D_X86_ -DIS_32 -DWINDOWS -DUNICODE -O2
14O=o14O=o
15FS=fs-win3215FS=fs-win32
16IP=win3216IP=win32
gui-win32/screen.c+9−3
@@ -1,3 +1,4 @@
1#define _WIN32_WINNT 0x0500
1#include <windows.h>2#include <windows.h>
2 3
3#undef Rectangle4#undef Rectangle
@@ -188,13 +189,13 @@ winproc(void *a) · 184 unmodified lines
188 wc.hCursor = LoadCursor(NULL, IDC_ARROW);189 wc.hCursor = LoadCursor(NULL, IDC_ARROW);
189 wc.hbrBackground = GetStockObject(WHITE_BRUSH);190 wc.hbrBackground = GetStockObject(WHITE_BRUSH);
190 wc.lpszMenuName = 0;191 wc.lpszMenuName = 0;
191 wc.lpszClassName = "9pmgraphics";192 wc.lpszClassName = L"9pmgraphics";
192 RegisterClass(&wc);193 RegisterClass(&wc);
193 194
194 window = CreateWindowEx(195 window = CreateWindowEx(
195 0, /* extended style */196 0, /* extended style */
196 "9pmgraphics", /* class */197 L"9pmgraphics", /* class */
197 "drawterm screen", /* caption */198 L"drawterm screen", /* caption */
198 WS_OVERLAPPEDWINDOW, /* style */199 WS_OVERLAPPEDWINDOW, /* style */
199 CW_USEDEFAULT, /* init. x pos */200 CW_USEDEFAULT, /* init. x pos */
200 CW_USEDEFAULT, /* init. y pos */201 CW_USEDEFAULT, /* init. y pos */
@@ -338,6 +339,11 @@ WindowProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) · 137 unmodified lines
338 return 1;339 return 1;
339 }340 }
340 return DefWindowProc(hwnd, msg, wparam, lparam);341 return DefWindowProc(hwnd, msg, wparam, lparam);
342 case WM_MOUSEWHEEL:
343 if ((int)(wparam & 0xFFFF0000)>0)
344 b|=8;
345 else
346 b|=16;
341 case WM_MOUSEMOVE:347 case WM_MOUSEMOVE:
342 case WM_LBUTTONUP:348 case WM_LBUTTONUP:
343 case WM_MBUTTONUP:349 case WM_MBUTTONUP:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t