Commit Graph
4 Commits
Author SHA1 Message Date
Claude cf099f92b4 port: the OLE calls that said E_NOTIMPL
- IConnectionPoint::EnumConnections for the layer's own points (fonts'
  and pictures' property notifications).
- IViewObject::Freeze and Unfreeze in the object handler: a frozen
  aspect draws, and gives its extent, as it was.
- IBinding::Suspend and Resume for URL bindings.
- ITypeInfo::GetTypeComp and ITypeLib::GetTypeComp: names bound to
  members (a type's, then its bases'), to enumerations' and modules'
  members, and to types.
- VariantCopy of VT_RECORD, through the record's IRecordInfo.
- Pictures save as icon files, placeable metafiles and enhanced
  metafiles, and load from them.
- SetData on OleGetClipboard's data object puts the data on the
  clipboard beside what is there.
- IRichEditOle::GetClipboardData (a range as rich text, Unicode and
  ANSI), ImportDataObject (text, or an object made from the data),
  ConvertObject and ActivateAs.
- CoTreatAsClass and CoGetTreatAsClass keep emulation in the registry,
  and CoGetClassObject follows it.

wintest and richtest check them natively.

Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRw4kkFHrrHRhkcuLw
2026-11-20 20:01:42 +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 e915cf0f60 Add the OLE dialogs and objects in rich edit text
afxodlgs.h wraps oledlg: Insert Object, Paste Special, Links, Update
Links, Change Icon, Convert and Server Busy, plus COleDocument's Links,
Convert and Change Icon commands. CRichEditDoc is now a COleDocument and
CRichEditView implements IRichEditOleCallback, so objects can be
inserted, pasted, selected, saved and loaded in the text.

The test object moves to tests/testobj.h so richtest can embed it too;
it now also gives its picture as data, which Wine's rich edit draws.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
2026-11-07 02:00:06 +00:00
Claude d14a87b408 Rich edit view and document (afxrich.h)
CRichEditView is a CCtrlView on the rich edit 2.0 control (1.0 as a
fallback): formatting of the selection (OnCharEffect, OnParaAlign and
their update handlers, Format > Font), find and replace with whole-word
matching, the edit commands, streaming to and from an archive as rich
text or plain text, word wrap to the window or the printed page, and
printing a page at a time with EM_FORMATRANGE inside the margins.

CRichEditDoc keeps its text in the view and chooses rich or plain text
with m_bRTF. It derives from CDocument for now, and CRichEditCntrItem is
a placeholder until the OLE container classes exist.

Also: CHARFORMAT2/PARAFORMAT2 overloads and GetTextRange,
GetTextLengthEx and SetOptions on CRichEditCtrl; CRichEditCtrl::FindText
sends EM_FINDTEXTEXW in Unicode builds; CFontDialog takes and gives back
a CHARFORMAT. Adds the richtest program.

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