6 Commits
Author SHA1 Message Date
Claude 06a2311a39 htmltest: Wine's security manager never asks the provider's
Under Wine (mingw-wine and clang-dos), CoInternetCreateSecurityManager
with a service provider never asks the provider's own manager, so the
custom zone came back as the Internet. Under Wine the test now logs a
note instead, as the other tests do for Wine's gaps; the port and
Windows are still checked.

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-19 02:06:31 +00:00
Claude 449c024c7f port: WinHelp, gopher and the internet security manager
These were the last functions in port/src/stubs.txt. Nothing on Linux
or macOS fails as unimplemented any more.

WinHelp: there is no WinHelp viewer, so the port opens a document next
to the program's .hlp file instead: the same name as .html, .htm, .pdf
or .txt, or a folder with an index.html. It uses the desktop's opener
(xdg-open or open), or the command WINPORT_HELP names. A help context
becomes the HTML page's anchor (help.html#131072). MFC's Help commands
work through it.

Gopher: GopherCreateLocator, GopherGetLocatorType, GopherFindFirstFile
(menus, submenus and index searches, then InternetFindNextFile),
GopherOpenFile (text with its dot escaping undone, binary, and gopher+
views) and GopherGetAttribute (gopher+ attributes, all of them or one
block). gopher:// URLs work through InternetOpenUrl. inettest runs a
gopher server of its own and tests it on the port; Windows dropped
gopher with IE 7, and Wine's is a stub.

CoInternetCreateSecurityManager: zones without Windows' settings. Local
files and res: are the local machine; a share or a host without a dot
is the intranet; everything else is the internet. Each zone has a
policy for ProcessUrlAction. There are security ids, and SetZoneMapping
and GetZoneMappings for the process. A service provider's own manager
is asked first. CDHtmlDialog uses it to decide window.external, and
htmltest now tests it directly.

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-19 01:49:09 +00:00
Claude 17c7084890 Run every test natively: drag and drop, DAO and HTML views
All of the test programs now run on Linux and macOS.

- OLE drag and drop within the program: RegisterDragDrop and
  RevokeDragDrop keep a window's drop target, and DoDragDrop follows
  the cursor from target to target. wltest and dragtest now pass.
- DAO: the layer's dbdaoint.h names the interfaces as Windows' header
  does (_DAODBEngine and the rest), adds the DAO 3.0 recordset methods
  and the parameter and sort constants, and the test's stand-in engine
  derives from stubs generated from that header (daostubs-port.h).
  dvtest closes its own message box, so it gets one as a window.
- HTML views: htmltest's stand-in documents derive from stubs generated
  from the layer's mshtml.h (htmlstubs-port.h); the missing event and
  element dispatch ids and the CommandStateChange constants are added.
- CHtmlEditView reads and writes a page's UTF-16 text unit by unit, so
  it is right where wchar_t has 32 bits.

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 11:22:04 +00:00
Claude 8ff1c9e2f1 CHtmlEditView, CHtmlEditCtrl and CHtmlEditDoc
CHtmlEditCtrlBase sends MSHTML's editing commands to the document's
IOleCommandTarget, with a string, number or flag as the command takes,
and reads the current font, colors and block formats back. It also
gets and sets the page's text through IPersistStreamInit. CHtmlEditCtrl
hosts the WebBrowser control and puts its start page in design mode
from its own connection to the browser's events. CHtmlEditView does the
same in a view and routes commands through its editing command map
(enabled, checked or radio from QueryStatus, or a handler of the
class's). CHtmlEditDoc saves the page and opens and starts new ones.
CHtmlView::GetSource now shares the text reading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
2026-11-07 17:46:36 +00:00
Claude 3e48736758 CMultiPageDHtmlDialog, embedded and URL event maps, DHTML_EVENT_AXCONTROL
CDHtmlDialog gets an (empty) map of its own, so it can be used as it
is. A CMultiPageDHtmlDialog picks the embedded map of each page from
its URL map, by resource id or name, and uses it with the class's own
map. DHTML_EVENT_AXCONTROL connects to the default source interface of
the control in an <object> element and calls the handler with the
event's arguments as its parameter types, writing by-reference ones
back; the handler may be __stdcall.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
2026-11-07 17:34:22 +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