Esempio n. 1
0
long CCallStackWnd::OnNotify(WPARAM wParam, NMHDR* pHDR)
{
	switch(pHDR->code)
	{
	case NM_DBLCLK:
		OnListDblClick();
		return FALSE;
		break;
	}

	return FALSE;
}
Esempio n. 2
0
LRESULT CFunctionsView::OnNotify(WPARAM wParam, NMHDR* pH)
{
	if(pH->hwndFrom == m_pList->m_hWnd)
	{
		NMLISTVIEW* pN = reinterpret_cast<NMLISTVIEW*>(pH);
		switch(pN->hdr.code)
		{
		case NM_DBLCLK:
			OnListDblClick();
			break;
		}
	}

	return FALSE;
}
Esempio n. 3
0
// When we receive notification
//
BOOL CInfoListBar::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) 
{
	// If the notification is in the tree control
	if( ((NMHDR*) lParam)->idFrom == (UINT) m_wndMyListCtrl.GetDlgCtrlID() )
	{
		switch( ((NMHDR*) lParam)->code )
		{
		case NM_RCLICK:
			OnListRightClick();
			// Call the base class
			//return CSizingControlBar::OnNotify(wParam, lParam, pResult);
			return true;
		case NM_CLICK:
			OnListLeftClick();
			// Call the base class
			return CSizingControlBar::OnNotify(wParam, lParam, pResult);
		case NM_DBLCLK:
			OnListDblClick();
			return true;
		case TVN_KEYDOWN:
			OnKeyDown( ((LPNMLISTVIEW) lParam)->iItem );
			// Call the base class
			return CSizingControlBar::OnNotify(wParam, lParam, pResult);
		case TVN_SELCHANGED:
			OnSelChanged( (NMLISTVIEW*) lParam );
			return CSizingControlBar::OnNotify(wParam, lParam, pResult);
			break;
		default:
			// Call the base class
			// TRACE("notif : %i\n", ((NMHDR*) lParam)->code );
			return CSizingControlBar::OnNotify(wParam, lParam, pResult);
		}
	}
	else
	{
		// Call the base class
		return CSizingControlBar::OnNotify(wParam, lParam, pResult);
	}
	
}