示例#1
0
void COutputView::UpdateSettings( void )
{
  if (g_pPrefs)
  {
    m_MsgView.SetMaxBufferLines(INTPREF(PREF_nMaxScrollBufferLines));
    m_MsgView.SetTimeStamps(BOOLPREF(PREF_bOutputWindowTimestamps));
    m_MsgView.SetFont(FONTPREF(PREF_fOutputWindowFont));
    m_MsgView.SetColors(g_pPrefs->m_ColorPrefs);

    if (BOOLPREF(PREF_bSocketLogging))
      m_MsgView.SetFilterList(NULL);
    else
      m_MsgView.SetFilterList(g_DefaultFilterList_Output);
  }
  m_MsgView.RedrawWindow();
}
示例#2
0
void CServerMonitorView::UpdateSettings( void )
{
  if (IsDocking())
  {
  	DWORD dwStyle = GetWindowLong(GWL_EXSTYLE) & (~(WS_EX_APPWINDOW | WS_EX_TOPMOST)); // remove the flags..
    SetWindowLong( GWL_EXSTYLE , dwStyle);
  }
  // m_MsgView.SetFilterList(g_DefaultFilterList_ServerMonitor); // TODO: we don't do this anymore, BUT we will need to add m_Filter to CServerMonitorView instead
  if (g_pPrefs)
  {
    m_MsgView.SetTimeStamps(BOOLPREF(PREF_bServerMonitorTimestamps));
    m_MsgView.SetMaxBufferLines(INTPREF(PREF_nMaxScrollBufferLines));
    m_MsgView.SetFont(FONTPREF(PREF_fServerMonitorFont));
    m_MsgView.SetColors(g_pPrefs->m_ColorPrefs);
  }
  m_MsgView.RedrawWindow();
}