Commit Graph
7 Commits
Author SHA1 Message Date
Claude 5a823a27f8 Merge remote-tracking branch 'origin/main' into claude/project-thread-vgls68 2026-11-18 12:28:27 +00:00
Claude 129f462189 ATL: utility headers (work in progress)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
2026-11-18 12:28:26 +00:00
Claude 796df60ec5 Run the ATL 3 control test natively
atlctltest now runs on Linux and macOS, after fixes to ATL's headers
where 64-bit longs and 32-bit wchar_t showed:

- A property map's data member keeps its type's size in a stream and a
  variant (a VT_I4 long member is saved as 4 bytes, sign-extended when
  read), so saved state and DLGINIT data load the same everywhere.
- CComBSTR writes and reads a stream's text in UTF-16.
- A dialog template's control class and a DLGINIT license key are in
  16-bit units, as the resource holds them.
- The property bag load hands the bag a variant with nothing in it,
  since a bag may clear it.
- The test writes its log with a path separator every system takes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRw4kkFHrrHRhkcuLw
Signed-off-by: Claude <noreply@anthropic.com>
2026-11-18 12:08:53 +00:00
Claude 6cd14cdd15 ATL: controls, event sinks and the control host
atlctl.h: CComControl and CComControlBase, windowed and windowless,
with the OLE control interfaces (IOleObjectImpl,
IOleInPlaceObjectWindowlessImpl, IViewObjectExImpl, IQuickActivateImpl
and the rest), CStockPropImpl, IPropertyPageImpl and
CComCompositeControl. atlcom.h: the property map behind
IPersistStreamInitImpl, IPersistStorageImpl and IPersistPropertyBagImpl
in ATL's stream format; IDispEventImpl, IDispEventSimpleImpl and sink
maps (plain handler names with clang-retro's compiler).
atlhost.h and atliface.h: the AtlAxWin window classes, CAxWindow,
AtlAxCreateControl and its forms, and CAxDialogImpl and
AtlAxDialogBox, which turn a dialog's ActiveX items into hosts with
their DLGINIT state.

CComVariant and CComBSTR read and write streams; CComVariant's
comparisons work without VarCmp on the portable layer; the CComObject
destructor's reference guard no longer truncates on LP64.

tests/atlctltest covers it under Wine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
2026-11-18 11:32:39 +00:00
Claude f2ed7bc5b0 ATL: CComVariant/CComBSTR streams and event sinks (work in progress)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
2026-11-18 10:53:05 +00:00
Claude 489bc28649 Add ATL for COM servers: atlbase.h and atlcom.h
The ATL a COM server is written with: CComModule (ATL 3, with an
object map) and CAtlDllModuleT/CAtlExeModuleT (ATL 7, with
OBJECT_ENTRY_AUTO); the registrar that runs .rgs scripts from REGISTRY
resources, and CRegKey; CComObjectRootEx and the threading models; the
object classes (CComObject and its NoLock, Cached, Global, Stack,
aggregated, poly and tear-off forms); BEGIN_COM_MAP and its entries;
creators, class factories (licensed and singleton too) and CComCoClass
with Error; IDispatchImpl over a type library, ISupportErrorInfoImpl
and IProvideClassInfo2Impl; connection points; CComEnum and
CComEnumOnSTL; IObjectWithSiteImpl and IObjectSafetyImpl.

atltest drives a server DLL written with them (ATL 3 in the ANSI
build, ATL 7 in the Unicode one) through COM: registration and
unregistration, vtable and IDispatch calls, rich errors, events,
tear-offs, aggregation, a singleton and unloading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
2026-11-17 17:27:48 +00:00
Claude 21de828660 CHtmlView and CDHtmlDialog (afxhtml.h)
CHtmlView hosts the WebBrowser control in a view: navigation (Navigate,
the Navigate2 forms, LoadFromResource), the browser's properties,
PutProperty/GetProperty, ExecWB and File Print, the forms commands,
GetSource, the browser's events through an event sink map, and
IDocHostUIHandler through a control site (CHtmlControlSite) that asks
the view's On functions.

CDHtmlDialog is a dialog whose face is an HTML page: DHTML event maps
(by id, class, tag, and the document's own events) through
CDHtmlEventSink, the element and ActiveX control functions, the
DDX_DHtml functions, window.external for local pages, and
IDocHostUIHandler through CDHtmlControlSite.

CWnd gains CreateControlSite, which the control container asks first
for a control's site. atlcomcli.h adds CComPtr, CComQIPtr, CComBSTR and
CComVariant.

htmltest runs both against a WebBrowser control and an HTML page of the
test's own, since Wine's needs Gecko to show a page; htmlstubs.h
(generated by gen-html-stubs.py) gives the fake page's interfaces.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
2026-11-07 17:09:17 +00:00