diff options
Diffstat (limited to 'fpdfsdk/pwl/cpwl_button.cpp')
-rw-r--r-- | fpdfsdk/pwl/cpwl_button.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/fpdfsdk/pwl/cpwl_button.cpp b/fpdfsdk/pwl/cpwl_button.cpp index 525148a767..fc0479be2c 100644 --- a/fpdfsdk/pwl/cpwl_button.cpp +++ b/fpdfsdk/pwl/cpwl_button.cpp @@ -15,24 +15,20 @@ CFX_ByteString CPWL_Button::GetClassName() const { return "CPWL_Button"; } -void CPWL_Button::OnCreate(PWL_CREATEPARAM& cp) { - cp.eCursorType = FXCT_HAND; +void CPWL_Button::OnCreate(CreateParams* pParamsToAdjust) { + pParamsToAdjust->eCursorType = FXCT_HAND; } bool CPWL_Button::OnLButtonDown(const CFX_PointF& point, uint32_t nFlag) { CPWL_Wnd::OnLButtonDown(point, nFlag); - m_bMouseDown = true; SetCapture(); - return true; } bool CPWL_Button::OnLButtonUp(const CFX_PointF& point, uint32_t nFlag) { CPWL_Wnd::OnLButtonUp(point, nFlag); - ReleaseCapture(); m_bMouseDown = false; - return true; } |