我尝试将消息发送到 IE rebar/toolbar,但似乎我的工具栏没有消息效果。谁能告诉我错在哪里?
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;
}