I try to sendmessage to an IE rebar/toolbar, but it seems that my toolbar does not take the message effect. Can someone tell me where is the fault ?
HRESULT CButtonDemoBHO::onDocumentComplete(IDispatch *pDisp, VARIANT *vUrl)
{
m_hWnd = NULL;
SHANDLE_PTR nBrowser = NULL;
HRESULT hr = m_spWebBrowser2->get_HWND(&nBrowser);
m_hWnd = (HWND)nBrowser;
SendMessage(m_hWnd, WM_test, 0, 0);
return S_OK;
}