Replace XFA_HDOC with IXFA_Doc*
[pdfium.git] / xfa / src / fxfa / src / app / xfa_ffwidgethandler.cpp
index 12df3a0..9790b4b 100644 (file)
@@ -78,7 +78,7 @@ FX_BOOL       CXFA_FFWidgetHandler::OnLButtonDown(XFA_HWIDGET hWidget, FX_DWORD dwFlag
     ((CXFA_FFWidget*)hWidget)->Rotate2Normal(fx, fy);\r
     FX_BOOL bRet =  ((CXFA_FFWidget*)hWidget)->OnLButtonDown(dwFlags, fx, fy);\r
     if (bRet && m_pDocView->SetFocus(hWidget)) {\r
-        ((CXFA_FFDoc*)m_pDocView->GetDoc())->GetDocProvider()->SetFocusWidget((XFA_HDOC)m_pDocView->GetDoc(), (XFA_HWIDGET)hWidget);\r
+        ((CXFA_FFDoc*)m_pDocView->GetDoc())->GetDocProvider()->SetFocusWidget(m_pDocView->GetDoc(), (XFA_HWIDGET)hWidget);\r
     }\r
     m_pDocView->UnlockUpdate();\r
     m_pDocView->UpdateDocView();\r
@@ -120,7 +120,7 @@ FX_BOOL     CXFA_FFWidgetHandler::OnRButtonDown(XFA_HWIDGET hWidget, FX_DWORD dwFlag
     ((CXFA_FFWidget*)hWidget)->Rotate2Normal(fx, fy);\r
     FX_BOOL bRet = ((CXFA_FFWidget*)hWidget)->OnRButtonDown(dwFlags, fx, fy);\r
     if (bRet && m_pDocView->SetFocus(hWidget)) {\r
-        ((CXFA_FFDoc*)m_pDocView->GetDoc())->GetDocProvider()->SetFocusWidget((XFA_HDOC)m_pDocView->GetDoc(), (XFA_HWIDGET)hWidget);\r
+        ((CXFA_FFDoc*)m_pDocView->GetDoc())->GetDocProvider()->SetFocusWidget(m_pDocView->GetDoc(), (XFA_HWIDGET)hWidget);\r
     }\r
     m_pDocView->RunInvalidate();\r
     return bRet;\r