CWnd::BindProperty
voidBindProperty(DISPIDdwDispID**,CWnd *pWndDSC);**
Parameters
dwDispID
Specifies the DISPID of a property on a data-bound control that is to be bound to a data-source control.
pWndDSC
Points to the window that hosts the data-source control to which the property will be bound. Call GetDlgItem with the resource ID of the DCS’s host window to retrieve this pointer.
Remarks
Binds a cursor-bound property on a data-bound control (such as a grid control) to a data-source control and registers that relationship with the MFC binding manager. The CWnd object on which you call this function must be a data-bound control. BindProperty might be used in the following context:
BOOL CMyDlg::OnInitDialog()
{
...
CWnd* pDSC = GetDlgItem(IDC_REMOTEDATACONTROL);
CWnd* pList= GetDlgItem(IDC_DBLISTBOX);
pList.BindProperty(0x9, pDSC);
...
return TRUE;
}
CWnd Overview | Class Members | Hierarchy Chart
See Also CWnd::GetDSCCursor, CWnd::BindDefaultProperty