MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / GetSelectedQueueOperation

Method GetSelectedQueueOperation

src/Windows/QueueWindow.cpp:140–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140QueueOperation* QueueWindow::GetSelectedQueueOperation() {
141 int selectedindex = ListView_GetNextItem(m_hwnd, -1, LVNI_ALL|LVNI_SELECTED);
142 if (selectedindex == -1)
143 return NULL;
144
145 LVITEM lvi;
146 lvi.iItem = selectedindex;
147 lvi.iSubItem = 0;
148 lvi.mask = LVIF_PARAM;
149 BOOL res = ListView_GetItem(m_hwnd, &lvi);
150 if (res == FALSE)
151 return NULL;
152
153 return (QueueOperation*)lvi.lParam;
154}
155
156bool QueueWindow::GetSelectedQueueRect(RECT * pRect) {
157 int selectedindex = ListView_GetNextItem(m_hwnd, -1, LVNI_ALL|LVNI_SELECTED);

Callers 1

MessageProcMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected