Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
ViewDlg.cpp
Package: POP3SMTP.rar [view]
Upload User: pyhyhg
Upload Date: 2022-08-11
Package Size: 56k
Code Size: 1k
Category:
Email Client
Development Platform:
Visual C++
- // ViewDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "POP3SMTP.h"
- #include "ViewDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CViewDlg dialog
- CViewDlg::CViewDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CViewDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CViewDlg)
- m_text = _T("");
- //}}AFX_DATA_INIT
- }
- void CViewDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CViewDlg)
- DDX_Text(pDX, IDC_EDIT_TEXT, m_text);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CViewDlg, CDialog)
- //{{AFX_MSG_MAP(CViewDlg)
- ON_BN_CLICKED(IDC_BUTTON_SAVE, OnButtonSave)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CViewDlg message handlers
- void CViewDlg::OnButtonSave()
- {
- // TODO: Add your control notification handler code here
- CFileDialog dlg(FALSE);
- if(dlg.DoModal()==IDOK)
- {
- CFile file(dlg.GetPathName(),CFile::modeCreate | CFile::modeWrite | CFile::typeBinary);
- file.Write((LPCSTR)m_text,m_text.GetLength());
- file.Close();
- }
- }