aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/ScintillaWin.cxx
AgeCommit message (Collapse)AuthorFilesLines
2025-06-12Squash some warnings, mostly by defining constants symbolically.Neil1-2/+2
2025-06-01Add SCI_SCROLLVERTICAL API.Neil1-0/+1
2025-05-24Remove line end space.Zufu Liu1-1/+1
2025-04-26For Korean IME VK_HANJA key, simplify code and avoid duplication and warnings.Neil1-19/+14
2025-04-23Encapsulate IME input context fully in IMContext class. All access to HIMC goesNeil1-71/+86
through this now.
2025-04-22Move common IME code from platform layers to ScintillaBase.Neil1-30/+0
2025-04-19Decrease warnings for reinterpret_cast since it is a common Win32 idiom to passNeil1-6/+6
pointers as integers to window procedures.
2025-04-03Turn on type conversion warnings for GCC and fix them.Neil1-9/+9
2025-04-03Silence 'magic' number clang-tidy warning where there is intense use of literalNeil1-0/+6
constants for processing character encodings or similar and where declaring constants would make the code more obscure, not less.
2025-03-29Simplify some boolean expressions and place brackets around subexpressions.Neil1-9/+5
2025-03-29Simplify WM_CHAR, particularly the handling of surrogate pairs.Neil1-11/+16
2025-03-28Standardize access to system colours through GetSysColor and avoid casts.Neil1-1/+1
2025-03-27Optimize case-insensitive DBCS search to be around 5 times faster by using 64KNeil1-45/+64
memory to cache folding data for each DBCS code page used.
2025-03-27Use constant definitions to avoid warnings.Neil1-14/+20
2025-03-27Use constant for pointsPerInch.Neil1-1/+1
2025-03-27Use empty method to avoid warnings.Neil1-3/+3
2025-03-20Move SurfaceGDI, SurfaceD2D, ListBox, and associated code out of PlatWin.cxx toNeil1-0/+3
new files SurfaceGDI.cxx, SurfaceD2D.cxx, and ListBox.cxx + associated headers.
2025-03-20Standardize render target initialization.Neil1-33/+35
Use symbolic names for DPI instead of inline value 96.
2025-03-20Break CTWndProc into 3 methods by adding CTProcessMessage and CTPaint as it wasNeil1-79/+93
too long and complex.
2025-03-20Remove else after return where it decreases both nesting and number of lines.Neil1-163/+147
2025-03-19Avoid warnings with explicit, =default, and making deleted methods public.Neil1-13/+11
2025-03-19Avoid NULL warnings.Neil1-12/+12
2025-03-19Encapsulate WM_PAINT handling.Neil1-14/+10
2025-03-12Hoist RECT to PRectangle conversions into a function.Neil1-1/+1
2025-03-09Avoid warnings by replacing &[0] with .data(), adding [[nodiscard]], replacingNeil1-33/+33
typedef with using, and initialising at declaration.
2025-02-20Move SizeOfRect to header to allow use in ScintillaWin.cxx where it simplifiesNeil1-4/+3
and avoids type warnings.
2025-02-17Switch to using ComPtr from WRL for render target code for simplicity andNeil1-72/+50
familiarity.
2025-02-12Implement Direct2D/DirectWrite 1.1. Add SC_TECHNOLOGY_DIRECT_WRITE_1 to use anNeil1-48/+255
explicit swap chain and ID2D1DeviceContext. Stop supporting DirectWrite on Windows Vista.
2025-02-11Update Direct2D and DirectWrite functions and types to Direct2D 1.1.Neil1-5/+21
2025-02-10Use ID2D1HwndRenderTarget::Resize when handling WM_SIZE to avoid larger stateNeil1-1/+14
invalidation which may be more costly to restore.
2025-02-09Add RenderTargets to hold one render target at a time, either Hwnd or DC.Neil1-30/+52
Drawing code just needs one or the other but other calls need a particular type with casting hiding potential problems. This will be more important in the future when a third type of render target ID2D1DeviceContext will be added. Use unique_ptr more for render targets to ensure they are freed correctly.
2025-02-09Wrap GetClientRect so it can be used more easily to produce const result.Neil1-18/+21
Move GetSizeUFromRect earlier for possible new code.
2025-02-09Update Direct2D headers to Direct2D 1.1.Neil1-2/+2
Doesn't change functionality yet but ensures more recent APIs will be available.
2024-12-03Feature [feature-requests:#1537]. Declare IME retrieval methods const.Zufu Liu1-2/+2
2024-10-17Bug [#2449]. Only return 1 for WM_MOUSEHWHEEL.Zufu Liu1-1/+2
2024-10-14Bug [#2449]. Fix horizontal scrolling with Logi Options+.Neil1-1/+1
Return 1 instead of documented 0 as this prevents interception of following WM_MOUSEHWHEEL messages, likely by Logi Options+ mouse driver.
2024-10-14Bug [#2449]. Fix direction of horizontal scrolling with touchpad.Zufu Liu1-1/+5
2024-08-27Use UndoGroup to ensure action ended if exception occurs.Neil1-2/+1
2024-08-09Simplify code that sets an empty selection at a position.Neil1-4/+2
2024-06-29Ensure clipboard is closed even if exception occurs while clipboard open.Neil1-5/+25
2024-06-20Feature [feature-requests:#1518]. Cherry pick SCI_CUTALLOWLINE from isscint.Martijn Laan1-1/+1
2024-05-09Bug [#2321]. Scale reverse arrow cursor with Direct2D when enabled.Zufu Liu1-23/+14
Implement arrow cursor colour choice. React to most settings changes.
2024-04-18Bug [#2321]. Scale reverse arrow cursor for margins to match other cursors.Zufu Liu1-4/+21
2024-03-22Bug [#2433]. Fix IME crash in windowed mode.Zufu Liu1-4/+14
2024-03-11Feature [feature-requests:#1512]. Avoid warning C26467 float to unsigned.Zufu Liu1-1/+2
2024-02-28Ensure keyboard-initiated context menu appears in multi-screen situations whenNeil1-12/+14
in PopUp::Text mode.
2024-02-28Encapsulate LPARAM to POINT conversion. Make PointFromLParam constexpr.Neil1-4/+8
2023-12-29Avoid casts and warnings for clipboard format registration.Neil1-8/+11
2023-11-07Feature [feature-requests:#1501] More use of LineStartPosition, LineEndPosition.Zufu Liu1-1/+1
2023-10-10Share definition of colour used for IME indicators on most platforms.Neil1-4/+4