Commit Graph
1 Commits
Author SHA1 Message Date
Claude 8c26c91494 Add ActiveX control containment
afxocc.h adds COleControlContainer, COleControlSite and COccManager,
turned on by AfxEnableControlContainer. CWnd::CreateControl hosts a
control in any window, and a dialog template's controls are made on
WM_INITDIALOG from the template, with their DLGINIT state, in the
template's tab order. Event sink maps (ON_EVENT, ON_EVENT_RANGE,
ON_EVENT_REFLECT, ON_PROPNOTIFY) route a control's events and property
notifications, and the DDX_OC functions exchange its properties.

A control's window object passes its window functions (text, styles,
position, enabling, focus, control ID) to the control, and a
container's dialog item functions reach its controls; these CWnd
members are now out of line in winocc.cpp. GetDlgItem gives a control
without a window object one that its site owns.

occtest hosts a control of its own in a frame and in a dialog.

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