Data source controls that make an ICursor (IVBDSC) can now be bound
like OLE DB ones: fields are read through the cursor's current row and
set with ICursorUpdateARow, and the site's INotifyDBEvents keeps the
bound controls current. ocdb.h declares the cursor interfaces.
ON_DSCNOTIFY, ON_DSCNOTIFY_RANGE and ON_DSCNOTIFY_REFLECT hear of each
step of a data source control's changes and can refuse them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
Dialog templates can carry a license key and simple data bindings in
each control's DLGINIT record. Parse both, pass the key to
CreateControl, and bind controls once the whole dialog exists.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs
CWnd and COleControlSite get BindDefaultProperty, BindProperty and
GetDSCCursor, for data source controls that are OLE DB data sources
(DataSource). A bound property follows its field in the current row
(IRowPositionChange and IRowsetNotify), and a change to the property
(IPropertyNotifySink::OnChanged) sets the field through IRowsetChange
and updates the other properties bound to it. BindProperty gives a
property the data source itself.
Adds bindtest, with a data source control over an in-memory table.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUqfQ3sTcDCMdNCGGs