diff --git a/src/renderer/win32/candidate_window.h b/src/renderer/win32/candidate_window.h index 492783680..f15a4a29f 100644 --- a/src/renderer/win32/candidate_window.h +++ b/src/renderer/win32/candidate_window.h @@ -36,7 +36,6 @@ #include #include #include -#include #include #include // clang-format on @@ -74,18 +73,18 @@ class CandidateWindow : public ATL::CWindowImpl( + OnCreate(reinterpret_cast(lparam))); + } + inline LRESULT OnDestroy(UINT msg_id, WPARAM wparam, LPARAM lparam, + BOOL &handled) { + OnDestroy(); + return 0; + } + inline LRESULT OnDpiChanged(UINT msg_id, WPARAM wparam, LPARAM lparam, + BOOL &handled) { + OnDpiChanged(static_cast(LOWORD(wparam)), + static_cast(HIWORD(wparam)), + reinterpret_cast(lparam)); + return 0; + } + inline LRESULT OnEraseBkgnd(UINT msg_id, WPARAM wparam, LPARAM lparam, + BOOL &handled) { + return static_cast(OnEraseBkgnd(reinterpret_cast(wparam))); + } + inline LRESULT OnGetMinMaxInfo(UINT msg_id, WPARAM wparam, LPARAM lparam, + BOOL &handled) { + OnGetMinMaxInfo(reinterpret_cast(lparam)); + return 0; + } + inline LRESULT OnLButtonDown(UINT msg_id, WPARAM wparam, LPARAM lparam, + BOOL &handled) { + OnLButtonDown(static_cast(wparam), + CPoint(GET_X_LPARAM(lparam), GET_Y_LPARAM(lparam))); + return 0; + } + inline LRESULT OnLButtonUp(UINT msg_id, WPARAM wparam, LPARAM lparam, + BOOL &handled) { + OnLButtonUp(static_cast(wparam), + CPoint(GET_X_LPARAM(lparam), GET_Y_LPARAM(lparam))); + return 0; + } + inline LRESULT OnMouseMove(UINT msg_id, WPARAM wparam, LPARAM lparam, + BOOL &handled) { + OnMouseMove(static_cast(wparam), + CPoint(GET_X_LPARAM(lparam), GET_Y_LPARAM(lparam))); + return 0; + } + inline LRESULT OnSettingChange(UINT msg_id, WPARAM wparam, LPARAM lparam, + BOOL &handled) { + OnSettingChange(static_cast(wparam), + reinterpret_cast(lparam)); + return 0; + } + inline LRESULT OnPaint(UINT msg_id, WPARAM wparam, LPARAM lparam, + BOOL &handled) { + OnPaint(reinterpret_cast(wparam)); + return 0; + } + inline LRESULT OnPrintClient(UINT msg_id, WPARAM wparam, LPARAM lparam, + BOOL &handled) { + OnPrintClient(reinterpret_cast(wparam), static_cast(lparam)); + return 0; + } + std::unique_ptr candidates_; WTL::CBitmap footer_logo_; Size footer_logo_display_size_;