AtlAdviseSinkMap
Visual Studio .NET 2003
Call this function to advise or unadvise all entries in the object's sink event map.
HRESULT AtlAdviseSinkMap( T* pT, bool bAdvise );
Parameters
- pT
- [in] A pointer to the object containing the sink map.
- bAdvise
- [in] true if all sink entries are to be advised; false if all sink entries are to be unadvised.
Return Value
A standard HRESULT value.
Example
class CMyDlg :
public CAxDialogImpl<CMyDlg>,
public IDispEventImpl<IDC_MASKEDBOX1, CMyDlg>
{
BEGIN_MSG_MAP(CMyDlg)
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
END_MSG_MAP()
LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
// hook up connection point
AtlAdviseSinkMap (this, TRUE);
return 1;
}
...
}