Export (0) Print
Expand All
ATL
Expand Minimize
This topic has not yet been rated - Rate this topic

AtlAdviseSinkMap 

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.

A standard HRESULT value.

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;
   }
...
}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.