- ultimatetcp-ip42_src.zip
- Ultimate TCP-IP
- Include
- license.htm
- ReadMe.htm
- Security
- Include
- Lib
- TestCert.pfx
- Res
- certif.bmp
- certif_m.bmp
- icon_cer_l.ico
- icon_cer_s.ico
- key.bmp
- location.bmp
- location_m.bmp
- location_s.bmp
- location_s_m.bmp
- SecurityRes.h
- SecurityRes.rc
- store.bmp
- store_m.bmp
- SecureServers
- Source
- UTSecureLayer
- Servers
- source
- ultimatetcp-ip42_samples.zip
- ActiveX
- BuildAll
- Demos
- Examples
- Client
- ASP
- MFC
- Imap4
- Nntp
- SDK
- DNS
- Finger
- Ftp
- History
- Http
- Mail
- MX Lookup
- Ping
- UDP
- VisualBasic
- Dns
- Finger
- Ftp
- History
- Http
- Imap4
- Mail
- MartsMail
- Nntp
- Ping
- Socket
- UDPSocket
- Master.dsw
- Master.sln
- Server
- ASP
- MFC
- SampleServer
- SDK
- AccessControlServerDemo
- Finger
- Ftp
- Http
- Mail
- VisualBasic
- service
- svrtest
- Examples
- Client
- Echo
- FTPs
- Https
- Imap4s
- Mail
- MasterS.dsw
- MasterS.sln
- Server
- Echo
- FTPs
- Https
- Mail
- Test_Del
- Util
- CertManager
- ultimatetcp-ip42_docs.zip
|
// PostDlg.cpp : implementation file
//
#include "stdafx.h"
#include "NNTPclient.h"
#include "PostDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPostDlg dialog
CPostDlg::CPostDlg(CWnd* pParent /*=NULL*/)
: CDialog(CPostDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CPostDlg)
m_strArtBody = _T("This is a test. I love NNTP 8-p");
m_strSubject = _T("Test (please Ignore)");
m_strFrom = _T("\"Your Name\" <youremail@yourdomain.com>");
m_strTargetNewsGroups = _T("microsoft.test");
//}}AFX_DATA_INIT
}
void CPostDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPostDlg)
DDX_Text(pDX, IDC_ART_BODY, m_strArtBody);
DDX_Text(pDX, IDC_EDIT2, m_strSubject);
DDX_Text(pDX, IDC_EDIT1, m_strFrom);
DDX_Text(pDX, IDC_TARGET_NEWS_GROUPS, m_strTargetNewsGroups);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPostDlg, CDialog)
//{{AFX_MSG_MAP(CPostDlg)
ON_BN_CLICKED(IDOK, OnOk)
ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPostDlg message handlers
void CPostDlg::OnOk()
{
// TODO: Add your control notification handler code here
UpdateData();
CDialog::OnOK();
}
void CPostDlg::OnButton1()
{
static _TCHAR szFilter[] = _T("All Files (*.*)|*.*||");
CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_FILEMUSTEXIST | OFN_OVERWRITEPROMPT, szFilter, this);
dlg.m_ofn.lpstrTitle = _T("Select a single attachment");
if (dlg.DoModal() == IDOK)
m_sAttachment = dlg.GetPathName();
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
In January 2005, David Cunningham and Chris Maunder created TheUltimateToolbox.com, a new group dedicated to the continued development, support and growth of Dundas Software’s award winning line of MFC, C++ and ActiveX control products.
Ultimate Grid for MFC, Ultimate Toolbox for MFC, and Ultimate TCP/IP have been stalwarts of C++/MFC development for a decade. Thousands of developers have used these products to speed their time to market, improve the quality of their finished products, and enhance the reliability and flexibility of their software.