MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / SelectItem

Function SelectItem

Libraries/PropertyGrid/PropertyGrid.h:248–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246 }
247
248 BOOL SelectItem(int iRow, int iCol = 0)
249 {
250 // No editor and remove focus
251 _DestroyInplaceWindow();
252 _InvalidateItem(m_iSelectedRow, m_iSelectedCol);
253 // Select new item. If on same row then use internal update.
254 m_iSelectedCol = iCol;
255 if( GetSelectedIndex() == m_iSelectedRow && m_iSelectedRow == iRow ) {
256 NMLISTVIEW nmlv = { m_hWnd, 0, 0, m_iSelectedRow, m_iSelectedCol, LVIS_SELECTED };
257 BOOL bDummy = FALSE;
258 OnSelChanged(0, reinterpret_cast<LPNMHDR>(&nmlv), bDummy);
259 return TRUE;
260 }
261 else {
262 return TBase::SelectItem(iRow);
263 }
264 }
265
266 int GetItemCount() const
267 {

Callers 5

OnDeleteItemFunction · 0.85
OnNavigateFunction · 0.85
OnNavigateFunction · 0.85
OnClickFunction · 0.85
CPropertyListWindowClass · 0.85

Calls 3

_DestroyInplaceWindowFunction · 0.70
_InvalidateItemFunction · 0.70
OnSelChangedFunction · 0.70

Tested by

no test coverage detected