INT_PTR CManageBookmarksDialog::OnNotify(NMHDR *pnmhdr) { switch(pnmhdr->code) { case NM_DBLCLK: OnDblClk(pnmhdr); break; case NM_RCLICK: OnRClick(pnmhdr); break; case TBN_DROPDOWN: OnTbnDropDown(reinterpret_cast<NMTOOLBAR *>(pnmhdr)); break; case TVN_SELCHANGED: OnTvnSelChanged(reinterpret_cast<NMTREEVIEW *>(pnmhdr)); break; case LVN_ENDLABELEDIT: return OnLvnEndLabelEdit(reinterpret_cast<NMLVDISPINFO *>(pnmhdr)); break; case LVN_KEYDOWN: OnLvnKeyDown(reinterpret_cast<NMLVKEYDOWN *>(pnmhdr)); break; } return 0; }
void CListCtrlEx::OnRclick(NMHDR* nm, LRESULT* pResult) { if (nm->hwndFrom == m_hWnd) OnRClick (); *pResult = 0; }
// We have to dispatch our own notify messages because the multiple inheritance of CCSHDialog prevents // the message map from compiling properly for ON_NOTIFY messages. BOOL CFailingRulesDialog::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult ) { LPNMHDR pHdr=(LPNMHDR)lParam; bool bHandled=false; switch(pHdr->idFrom){ case IDC_LIST1: switch (pHdr->code) { case LVN_ITEMCHANGED: bHandled=OnItemChanged(wParam, (LPNMLISTVIEW)lParam, pResult); break; case NM_CLICK: bHandled=OnClick(wParam, (LPNMLISTVIEW)lParam, pResult); break; case NM_RCLICK: bHandled=OnRClick(wParam, (LPNMITEMACTIVATE)lParam, pResult); break; default: break; } break; case IDC_LIST2: switch (pHdr->code) { case LVN_ITEMCHANGED: bHandled=OnSolutionItemChanged(wParam,(LPNMLISTVIEW)lParam, pResult); break; default: break; } break; } return bHandled || CeCosDialog::OnNotify(wParam,lParam,pResult); }
void CWndLog::OnKeyDown(WORD wVK) { switch (wVK) { case VK_APPS: CalcCoordsForCurSel (); OnRClick (); break; } }
void CSitesWnd::OnKeyDown(WORD wVK) { switch (wVK) { case VK_DELETE: OnSitesDelete (); break; case VK_RETURN: OnSitesProperties (); break; case VK_APPS: CalcCoordsForCurSel (); OnRClick (); break; } }
void CFVDownloads_Tasks::OnKeyDown(WORD wVK) { switch (wVK) { case VK_DELETE: DeleteSelected (GetKeyState (VK_SHIFT) & 0x8000); break; case VK_RETURN: if (GetKeyState (VK_MENU) & 0x8000) ShowSelectedDldsProperties (); else CallSelectedDownload (TRUE); break; case VK_APPS: CalcCoordsForCurSel (); OnRClick (); break; } }
//-------------------------------------------------------------------------------- long CTab::OnNotify( NotificationMessageHeader* pHdr ) { _WINQ_FCONTEXT( "CTab::OnNotify" ); long lResult = 0; if( pHdr != 0 ) { switch ( pHdr->m_uiCode ) { case NM_CLICK: { OnClick( pHdr ); } break; case NM_DBLCLK: { lResult = static_cast< long >( OnDblClick( pHdr ) ? 0 : 1 ); } break; case NM_RCLICK: { lResult = static_cast< long >( OnRClick( pHdr ) ? 0 : 1 ); } break; case NM_RDBLCLK: { lResult = static_cast< long >( OnRDblClick( pHdr ) ? 0 : 1 ); } break; #if ( _WIN32_IE >= 0x0400 ) case NM_RELEASEDCAPTURE: { OnReleasedCapture( pHdr ); } break; case TCN_GETOBJECT: { OnGetObject( reinterpret_cast< NMOBJECTNOTIFY* >( pHdr ) ); } break; #endif//( _WIN32_IE >= 0x0400 ) #if ( _WIN32_IE >= 0x0500 ) case TCN_FOCUSCHANGE: { OnFocusChange( pHdr ); } break; #endif//( _WIN32_IE >= 0x0500 ) case TCN_KEYDOWN : { OnKeyDown( reinterpret_cast< NMTCKEYDOWN* >( pHdr ) ); } break; case TCN_SELCHANGE: { OnSelChange( pHdr ); } break; case TCN_SELCHANGING: { lResult = static_cast< long >( OnSelChanging( pHdr ) ? 0 : 1 ); } break; default: { lResult = OnUnknownNotification( pHdr ); } break; } } return lResult; }
//-------------------------------------------------------------------------------- long CTreeView::OnNotify( NotificationMessageHeader* pHdr ) { _WINQ_FCONTEXT( "CTreeView::OnNotify" ); long lResult = 0; if( pHdr != 0 ) { switch ( pHdr->m_uiCode ) { case NM_CLICK: { lResult = static_cast< long >( OnClick( pHdr ) ? 0 : 1 ); } break; case NM_CUSTOMDRAW: { lResult = OnCustomDraw( reinterpret_cast< NMTVCUSTOMDRAW* >( pHdr ) ); } break; case NM_DBLCLK: { lResult = static_cast< long >( OnDblClick( pHdr ) ? 0 : 1 ); } break; case NM_KILLFOCUS: { OnKillFocus( pHdr ); } break; case NM_RCLICK: { lResult = static_cast< long >( OnRClick( pHdr ) ? 0 : 1 ); } break; case NM_RDBLCLK: { lResult = static_cast< long >( OnRDblClick( pHdr ) ? 0 : 1 ); } break; case NM_RETURN: { lResult = static_cast< long >( OnReturn( pHdr ) ? 0 : 1 ); } break; #if ( _WIN32_IE >= 0x0400 ) case NM_SETCURSOR: { lResult = static_cast< long >( OnSetCursor( reinterpret_cast< NMMOUSE* >( pHdr ) ) ? 0 : 1 ); } break; #endif//( _WIN32_IE >= 0x0400 ) case NM_SETFOCUS: { OnSetFocus( pHdr ); } break; #if ( _WIN32_IE >= 0x0600 ) case TVN_ASYNCDRAW: { OnAsyncDraw( reinterpret_cast< NMTVASYNCDRAW* >( pHdr ) ); } break; #endif//( _WIN32_IE >= 0x0600 ) case TVN_BEGINDRAG: { OnBeginDrag( reinterpret_cast< NMTREEVIEW* >( pHdr ) ); } break; case TVN_BEGINLABELEDIT: { lResult = static_cast< long >( OnBeginLabelEdit( reinterpret_cast< NMTVDISPINFO* >( pHdr ) ) ? 0 : 1 ); } break; case TVN_BEGINRDRAG: { OnBeginRDrag( reinterpret_cast< NMTREEVIEW* >( pHdr ) ); } break; case TVN_DELETEITEM: { OnDeleteItem( reinterpret_cast< NMTREEVIEW* >( pHdr ) ); } break; case TVN_ENDLABELEDIT: { lResult = static_cast< long >( OnEndLabelEdit( reinterpret_cast< NMTVDISPINFO* >( pHdr ) ) ? 1 : 0 ); } break; case TVN_GETDISPINFO: { OnGetDispInfo( reinterpret_cast< NMTVDISPINFO* >( pHdr ) ); } break; #if ( _WIN32_IE >= 0x0400 ) case TVN_GETINFOTIP: { OnGetInfoTip( reinterpret_cast< NMTVGETINFOTIP* >( pHdr ) ); } break; #endif//( _WIN32_IE >= 0x0400 ) #if ( _WIN32_IE > 0x0600 ) case TVN_ITEMCHANGED: { lResult = static_cast< long >( OnItemChanged( reinterpret_cast< NMTVITEMCHANGE* >( pHdr ) ) ? 0 : 1 ); } break; case TVN_ITEMCHANGING: { lResult = static_cast< long >( OnItemChanging( reinterpret_cast< NMTVITEMCHANGE* >( pHdr ) ) ? 0 : 1 ); } break; #endif//( _WIN32_IE > 0x0600 ) case TVN_ITEMEXPANDED: { OnItemExpanded( reinterpret_cast< NMTREEVIEW* >( pHdr ) ); } break; case TVN_ITEMEXPANDING: { lResult = static_cast< long >( OnItemExpanding( reinterpret_cast< NMTREEVIEW* >( pHdr ) ) ? 0 : 1 ); } break; case TVN_KEYDOWN: { lResult = static_cast< long >( OnKeyDown( reinterpret_cast< NMTVKEYDOWN* >( pHdr ) ) ? 0 : 1 ); } break; case TVN_SELCHANGED: { OnSelChanged( reinterpret_cast< NMTREEVIEW* >( pHdr ) ); } break; case TVN_SELCHANGING: { lResult = static_cast< long >( OnSelChanging( reinterpret_cast< NMTREEVIEW* >( pHdr ) ) ? 0 : 1 ); } break; case TVN_SETDISPINFO: { OnSetDispInfo( reinterpret_cast< NMTVDISPINFO* >( pHdr ) ); } break; #if ( _WIN32_IE >= 0x0400 ) case TVN_SINGLEEXPAND: { lResult = OnSingleExpand( reinterpret_cast< NMTREEVIEW* >( pHdr ) ); } break; #endif//( _WIN32_IE >= 0x0400 ) default: { lResult = OnUnknownNotification( pHdr ); } break; } } return lResult; }