ServerDlg.cpp
资源名称:warftpd.zip [点击查看]
上传用户:surprise9
上传日期:2007-01-04
资源大小:426k
文件大小:2k
源码类别:
Ftp客户端
开发平台:
Visual C++
- // ServerDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "WarDaemon.h"
- #include "ServerDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CServerDlg dialog
- CServerDlg::CServerDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CServerDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CServerDlg)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void CServerDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CServerDlg)
- DDX_Control(pDX, IDC_LOGWINDOW, m_LogWin);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CServerDlg, CDialog)
- //{{AFX_MSG_MAP(CServerDlg)
- //}}AFX_MSG_MAP
- ON_MESSAGE(WMU_MSG,GenericProcessMessage)
- ON_MESSAGE(WMU_TX_DNS, OnDNS)
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CServerDlg message handlers
- void CServerDlg::OnOK()
- {
- PostMessage(WMU_MSG,PPT_SHUTDOWN,(LPARAM)TRUE);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CServerDlg message mapping to other modules
- // We call functions that ensure that the message
- // reach the correct module/thread
- LRESULT CServerDlg::GenericProcessMessage(WPARAM WParam, LPARAM LParam)
- {
- return CDaemonBase::GenericProcessMessage(WParam,LParam);
- }
- LRESULT CServerDlg::OnDNS(WPARAM WParam, LPARAM LParam)
- {
- CDNSLookup::DNSlookupCallback(WParam, LParam);
- return TRUE;
- }