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>
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
CDocObjectServer's IPrint now prints: GetPageInfo asks the document's
view for its pages, and Print runs the view's printing to the
container's printer, with page sets, the continue callback, counting
only (PRINTFLAG_DONTACTUALLYPRINT) and printing to a file.
COleDocObjectItem::DoDefaultPrinting prints through IPrint, or else
through the object's Print command.
COleControlSite gives its control an extended control
(IOleControlSite::GetExtendedControl): Name, Object, Parent, Left,
Top, Width, Height, Visible and ID, with the control's own properties
and methods through the same IDispatch. COleControl::GetExtendedControl
asks the container for it.
Tests: docobtest prints through IPrint; ctltest uses the extended
control. The test programs' stray logs in the top folder are ignored.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
afxdocob.h adds CDocObjectServer (IOleDocument, IOleDocumentView,
IOleCommandTarget and IPrint for a COleServerDoc whose container is a
document site), CDocObjectServerItem, COleDocObjectItem for containers,
and OLE command maps (BEGIN_OLECMD_MAP, ON_OLECMD_*). COleServerDoc makes
its DocObject server on demand through GetDocObjectServer, and
UpdateRegistry writes the DocObject key for OAT_DOC_OBJECT_SERVER.
docobtest covers activation, view state, and commands both ways.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs