aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.h
AgeCommit message (Collapse)AuthorFilesLines
2025-06-12Squash some warnings, mostly by defining constants symbolically.Neil1-0/+2
2025-03-28Standardize access to system colours through GetSysColor and avoid casts.Neil1-0/+2
2025-03-27Use constant for pointsPerInch.Neil1-0/+3
2025-03-20Move SurfaceGDI, SurfaceD2D, ListBox, and associated code out of PlatWin.cxx toNeil1-18/+84
new files SurfaceGDI.cxx, SurfaceD2D.cxx, and ListBox.cxx + associated headers.
2025-03-20Standardize render target initialization.Neil1-0/+1
Use symbolic names for DPI instead of inline value 96.
2025-03-19Encapsulate WM_PAINT handling.Neil1-0/+12
2025-03-12Hoist RECT to PRectangle conversions into a function.Neil1-0/+4
2025-02-20Move SizeOfRect to header to allow use in ScintillaWin.cxx where it simplifiesNeil1-0/+4
and avoids type warnings.
2025-02-17Switch to using ComPtr from WRL for render target code for simplicity andNeil1-7/+4
familiarity.
2025-02-12Implement Direct2D/DirectWrite 1.1. Add SC_TECHNOLOGY_DIRECT_WRITE_1 to use anNeil1-0/+5
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-4/+6
2025-02-09Add RenderTargets to hold one render target at a time, either Hwnd or DC.Neil1-0/+5
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.
2024-05-09Bug [#2321]. Scale reverse arrow cursor with Direct2D when enabled.Zufu Liu1-2/+1
Implement arrow cursor colour choice. React to most settings changes.
2024-05-06Make LoadD2D noexcept so can be called in more situations.Zufu Liu1-1/+1
2024-04-18Bug [#2321]. Scale reverse arrow cursor for margins to match other cursors.Zufu Liu1-1/+2
2023-06-22Bug [#2382]. Fix reverse arrow cursor when scaled.Markus Nißl1-1/+1
2023-03-27Declare const where possible.Neil1-1/+1
2022-11-29Bug [#2344]. When GDI scaling is active, ensure correct monitor used forNeil1-1/+1
determining scale factor. Function name changed to avoid possibility of confusion with Win32 API.
2022-11-26Bug [#2344]. Avoid blurry display with DirectWrite in GDI scaling mode.Markus Nißl1-0/+1
https://sourceforge.net/p/scintilla/code/merge-requests/28/
2022-10-29Bug [#2344]. Use the top-level window to find the monitor for DirectWriteMarkus Nißl1-0/+2
rendering parameters. Temporarily switch DPI awareness to find correct monitor in GDI scaling mode. https://sourceforge.net/p/scintilla/code/merge-requests/34/
2022-10-23Feature [feature-requests:#1457] Reuse MouseWheelDelta for autocompletion lists.Zufu Liu1-0/+14
This code triggers when wheel rotated and mouse is outside list.
2022-03-12Feature [feature-requests:#1432] Support per-monitor text rendering parametersNeil1-0/+9
and update when changed by user. Includes code from Zufu Liu.
2021-11-22Move common Win32 functions for releasing IUnknown* and DLL function access intoNeil1-31/+0
new WinType.h header.
2021-05-28Merge init into ScintillaWin constructor as not called from anywhere else.Neil1-1/+1
Ensure variables initialised. Remove dead code.
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil1-1/+1
and ScintillaStructures.h using scoped enumerations. Use these headers instead of Scintilla.h internally. External definitions go in the Scintilla namespace and internal definitio0ns in Scintilla::Internal.
2020-06-15Use ReleaseUnknown to extend noexcept over finalisation.Zufu Liu1-1/+1
2020-06-06Add ReleaseUnknown to safely release IUnknown* and avoid warnings when done inNeil1-0/+17
noexcept context.
2020-06-06Defer most initialisation until Scintilla window is created.Neil1-1/+2
Previously, more initialisation was performed inside DllMain but some actions such as loading libraries are unsafe inside DllMain. Avoid listbox UnregisterClass if no attempt to register which will occur if no Scintilla windows were created. std::call_once is used to ensure initialisation is performed at most once.
2020-05-27Bug [#2063]. Make reverse arrow cursor scale with DPI.Zufu Liu1-0/+2
2020-05-27Bug [#2063]. Add SystemMetricsForDpi and use for ListBox and mouse drag and ↵Zufu Liu1-0/+6
drop. Simplify IME font definition.
2020-05-19Bug [#2171]. Implement per-monitor DPI Awareness on Windows.Neil1-0/+2
2020-05-19Encapsulate GetProcAddress in a way that avoids undefined and conditionallyNeil1-0/+14
defined behaviour.
2020-04-05Feature [feature-requests:1345] Use more typesafe code to clear window pointers,Neil1-0/+3
share implementation of window pointers between files, use GetWindowStyle.
2020-02-09Feature [feature-requests:#1340] Move and use Point functions to avoid casting.Zufu Liu1-0/+8
2020-01-31Use more typesafe functions to remove casts.Neil1-0/+8
2019-02-24Use noexcept and constexpr where possible and reasonable.Neil1-1/+5
2018-05-24Fix warnings. Add const, constexpr, and noexcept. Initialize. Standard methods.Neil1-1/+1
Replace 0 and NULL with nullptr for COM, DirectWrite and least ambiguous cases.
2018-05-01Use RectFromPRectangle to avoid casts.Neil1-0/+2
2017-09-11The Scintilla namespace is always active for internal symbols and for the lexerNeil1-4/+0
interfaces ILexer4 and IDocument.
2015-01-11Support removed for Windows 95, 98, and ME.Neil1-1/+0
2014-05-26Bug [#1602]. Bug [#1603]. Fix hangs and crashes at shutdown.Neil1-1/+1
2013-07-21Standardising header guards and namespaces.Neil1-0/+13
2011-09-25Allow choice of D2D on compiler command line.nyamatongwe1-1/+1
2011-09-24Mingw32 doesn't have Direct2D or DirectWrite headers so turn off usenyamatongwe1-0/+3
of these libraries except when compiling with Visual C++.
2011-08-07Dynamically loading Direct2D and DirectWrite at run time so can run on ↵nyamatongwe1-0/+13
Windows XP.