MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / OnLeftButtonDown

Method OnLeftButtonDown

WinArk/HexControl.cpp:142–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142LRESULT CHexControl::OnLeftButtonDown(UINT, WPARAM, LPARAM lParam, BOOL&) {
143 m_Selection.Clear();
144
145 SetCapture();
146 int x = GET_X_LPARAM(lParam), y = GET_Y_LPARAM(lParam);
147 auto offset = GetOffsetFromPoint(CPoint(x, y));
148 if (offset >= 0) {
149 m_CaretOffset = offset;
150 UpdateCaret();
151 }
152 RedrawWindow();
153 return 0;
154}
155
156LRESULT CHexControl::OnGetDialogCode(UINT, WPARAM, LPARAM, BOOL&) {
157 return DLGC_WANTALLKEYS;

Callers

nothing calls this directly

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected