void CJobWatchDlg::OnIdle() { CUtlVector<char> text; // Any new text? This would indicate that the process is running currently. if ( GetCurrentWorkerText( text, m_CurMessageIndex ) && text.Count() > 0 ) { FormatAndSendToEditControl( m_TextOutput.GetSafeHwnd(), text.Base() ); } FillGraph(); }
void CQC_EyesDlg::OnCreateQcText() { if ( !CheckNumericInputs() ) return; GenerateQCText(); // Clear the edit control. LRESULT nLen = ::SendMessage( m_hOutputText, EM_GETLIMITTEXT, 0, 0 ); ::SendMessage( m_hOutputText, EM_SETSEL, 0, nLen ); ::SendMessage( m_hOutputText, EM_REPLACESEL, FALSE, (LPARAM)"" ); FormatAndSendToEditControl( m_hOutputText, m_Buf ); delete [] m_Buf; }
void CJobWatchDlg::OnSelChangeWorkers() { CUtlVector<char> text; m_CurMessageIndex = 0; GetCurrentWorkerText( text, m_CurMessageIndex ); int nLen = m_TextOutput.SendMessage( EM_GETLIMITTEXT, 0, 0 ); m_TextOutput.SendMessage( EM_SETSEL, 0, nLen ); m_TextOutput.SendMessage( EM_REPLACESEL, FALSE, (LPARAM)"" ); FormatAndSendToEditControl( m_TextOutput.GetSafeHwnd(), text.Base() ); m_GraphControl.Clear(); m_CurGraphTime = -1; FillGraph(); }