00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #include "stdafx.h" 00007 #include "FdmApp.h" 00008 #include "Scheduler_Log.h" 00009 #include "ShedulerWnd.h" 00010 00011 #ifdef _DEBUG 00012 #define new DEBUG_NEW 00013 #undef THIS_FILE 00014 static char THIS_FILE[] = __FILE__; 00015 #endif 00016 00017 extern CShedulerWnd *_pwndScheduler; 00018 00019 CScheduler_Log::CScheduler_Log() 00020 { 00021 m_bAutoScroll = TRUE; 00022 } 00023 00024 CScheduler_Log::~CScheduler_Log() 00025 { 00026 } 00027 00028 BEGIN_MESSAGE_MAP(CScheduler_Log, CWndLog) 00029 //{{AFX_MSG_MAP(CScheduler_Log) 00030 ON_COMMAND (ID_CLEAR, OnClear) 00031 //}}AFX_MSG_MAP 00032 END_MESSAGE_MAP() 00033 00034 void CScheduler_Log::OnClear() 00035 { 00036 CWndLog::OnClear (); 00037 _pwndScheduler->m_evMgr.clear (); 00038 } 00039 00040 BOOL CScheduler_Log::Create(CWnd *pParent) 00041 { 00042 if (!CWndLog::Create (pParent)) 00043 return FALSE; 00044 00045 ReadState ("SchedulerLog"); 00046 00047 return TRUE; 00048 } 00049
1.5.6