//================================================================================================ // -----------------------+++--> Message Processor for the Selected Running Timers Watching Dialog: INT_PTR CALLBACK DlgTimerViewProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam) //------+++--> { switch(msg) { case WM_INITDIALOG: OnInitTimeView(hDlg); SetTimer(hDlg, 3, 285, NULL); // Timer Refresh Times Above 400ms Make api.PositionWindow(hDlg,21); //-----+++--> Timer Watch Dialog Appear Sluggish. return TRUE; //-------------------------------+++--> END of Case WM_INITDOALOG //================//================================================================ case WM_TIMER: if(!OnWatchTimer(hDlg)) { // When the Last Monitored Timer KillTimer(hDlg, 3); // Expires, Close the Now UnNeeded g_hDlgTimerWatch = NULL; DestroyWindow(hDlg); // Timer Watch/View Dialog Window. } return TRUE; //--------------------------------+++--> END of Case WM_TIMER //====================//============================================================ case WM_COMMAND: switch(LOWORD(wParam)) { case IDCANCEL: KillTimer(hDlg, 3); g_hDlgTimerWatch = NULL; DestroyWindow(hDlg); return TRUE; } return FALSE;//------------------------------+++--> END of Case WM_COMMAND //===//============================================================================= case WM_NOTIFY: //--------------------------------------------------------------------+++--> if(((NMHDR*)lParam)->code == LVN_KEYDOWN) { //-+> Capture Key Strokes Here. LPNMLVKEYDOWN nmkey = (NMLVKEYDOWN*)lParam; HWND hList=GetDlgItem(hDlg,IDC_LIST); switch(nmkey->wVKey) { case VK_DELETE:{ int i; if((i = ListView_GetNextItem(hList,-1,LVNI_SELECTED)) != -1) { char szTimer[GEN_BUFF]; ListView_GetItemText(hList, i, 0, szTimer, GEN_BUFF); RemoveFromWatch(hDlg, hList, szTimer, i); } return TRUE;}// Delete Key Handled } } break; //-------------------------------------+++--> END of Case WM_NOTIFY //===//============================================================================= } return FALSE; }
int Visor::cQMainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QMainWindow::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: OnLayout(); break; case 1: OnSliderMoved((*reinterpret_cast< int(*)>(_a[1]))); break; case 2: OnRotate(); break; case 3: OnMove(); break; case 4: OnWatchTimer(); break; case 5: OnShot(); break; default: ; } _id -= 6; } return _id; }