我使用DSOFramer控件将Excel嵌入到winform中。在Excel 2010中,单击鼠标右键的上下文菜单将不会打开。该控件看起来好像在右击时失去了焦点。我以前编辑过DsoFramer源代码,所以我对它很满意。有没有人知道任何可能的黑客攻击,以使其工作?
发布于 2012-03-18 04:40:09
这是我所做的:
STDMETHODIMP_(void) CDsoFramerControl::OnCtrlFocusChange(BOOL fCtlGotFocus, HWND hFocusWnd)
{
//TRACE2("CDsoFramerControl::OnCtrlFocusChange(fCtlGotFocus=%d, hwndCurFocus=%x)\n", fCtlGotFocus, hFocusWnd);
// if (!(m_fInFocusChange) && ((fCtlGotFocus) || !IsWindowChild(m_hwnd, hFocusWnd)))
// {
// OnUIFocusChange(fCtlGotFocus);
// }
}https://stackoverflow.com/questions/9690668
复制相似问题