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>
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>
Containers: COleFrameHook implements IOleInPlaceFrame on the container's
frame, merges the shared menu, negotiates border space and hides the
container's bars while the object shows its own. COleClientItem gains
IOleInPlaceSite and the in-place operations (Deactivate, DeactivateUI,
SetItemRects, OnChangeItemPosition and the overridables).
Servers: COleServerDoc implements IOleInPlaceObject and
IOleInPlaceActiveObject and activates in place on show, in a
COleIPFrameWnd with a COleResizeBar. Its toolbars dock in the
container's frame through COleCntrFrameWnd. CDocTemplate gains
CreateOleFrame.
Also CRectTracker, and COleClientItem::Draw draws from the object's
metafile when it has no view object (container and server in one
process under Wine). iptest covers all of it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs