Commit Graph
6 Commits
Author SHA1 Message Date
Claude 9117a644a5 Add the OLE dialogs about an object or link
New oledlg_object.cpp implements OleUIBusy, OleUIChangeIcon,
OleUIConvert, OleUIChangeSource, OleUIObjectProperties (General, View
and Link pages) and OleUIUpdateLinks, in ANSI and Unicode, as templates
built in memory. Convert lists the classes whose Conversion keys read
(or read and write) the object's format; without a format of its own,
the class's DefaultFile or ProgID names it.

Alongside: OleMetafilePictFromIconAndLabel (an icon's picture shares
OleGetIconOfClass's layout), ExtractIconA/W for icon files and the
program's own icons, and class-named controls in dialog templates.

linktest runs each dialog through MFC's dialog classes, answered by
their hooks.

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:03:03 +00:00
Claude 2525006a74 linktest: Wine's OleQueryLinkFromData always says no
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 00:45:44 +00:00
Claude 90a71a2103 Add OLE links, insert from file, auto convert and menu merging
The default handler gains a link mode (IOleLink): the source's moniker
is bound to run it, the link's own "\1Ole" stream keeps the moniker and
update option, and the storage's class is StdOleLink, which OleLoad
recognizes. On top of it: OleCreateLink, OleCreateLinkToFile and
OleCreateLinkFromData (Link Source, or a FileName). OleCreateFromFile
has the file's object save itself into the new storage; OleCreateFromData
also takes a FileName and fills the asked-for picture from the data.
OleDoAutoConvert follows the class's AutoConvertTo key.

New ole_inplace.cpp: menu descriptors route the object's popups and
their commands to the object's window, IsAccelerator matches key
messages against a table, and OleTranslateAccelerator hands the
container's accelerators to its frame.

linktest checks the links, the embedded copy and auto convert; iptest
checks the shared menu's commands going to the right side.

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 00:30:05 +00:00
Claude a41764081b Portable layer: status bar, toolbar and tooltips
The common control classes msctls_statusbar32, ToolbarWindow32 and
tooltips_class32 with their messages and notifications, plus
CreateStatusWindow, DrawStatusText, CreateToolbarEx, MenuHelp,
GetEffectiveClientRect, ShowHideMenuCtl, the drag list functions, and
the window subclassing helpers (SetWindowSubclass and the rest).

The SDI and MDI test programs now run natively up to print preview.
Their logs print LONG values with %d, which fits LONG on Windows and on
LP64 systems alike.

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-11 17:30:56 +00:00
Claude 75ad5f5ab2 Add COleMessageFilter, Change Source and Object Properties dialogs, COleCmdUI and COleDocIPFrameWnd
COleMessageFilter is the thread's IMessageFilter, registered by
AfxOleInit: busy, it refuses new calls; a refused call of the program's
own is retried until the timeout, then the Server Busy or Not Responding
dialog decides. COleChangeSourceDialog and COlePropertiesDialog wrap the
oledlg dialogs, with IOleUIObjInfo on the item and IOleUILinkInfo on the
links. COleCmdUI carries update handlers' state and text to
IOleCommandTarget::QueryStatus. COleDocIPFrameWnd puts a DocObject's
Help popup into the container's Help menu, which a DocObject container
keeps in the shared menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
2026-11-08 03:22:57 +00:00
Claude f75b9abd65 Add links to a server's documents and items
COleLinkingDoc now serves links: it is an IOleItemContainer that finds
its server items and embedded objects by name, gives file monikers,
and parses "!item" display names. COleServerItem gets its own
IOleObject and IDataObject for links, item monikers, Link Source data
on the clipboard, and notifications for its links. Links hold their
item and its document while connected, so a document opened for a link
closes when the link lets go; the running object table holds a stand-in
so it does not keep such a document open.

A container's client site now gives monikers and its container, so
links can name objects embedded in a COleLinkingDoc.
CDocManager::RegisterShellFileTypes registers each template's file
type, which lets COM find the class of a file a link names.

Adds linktest.

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