Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

The Ultimate TCP/IP Home Page

, 25 Aug 2007
Ultimate TCP-IP is now Open Source
ultimatetcp-ip42_docs.zip
ultimatetcp-ip42_samples.zip
Ultimate TCP-IP
ActiveX
BuildAll
All.dsw
MinDependency_Dlls
MinDependency_EvalDlls
UTDns
dns.bmp
DNS.rgs
DNSPropPage.rgs
icon_fin.ico
UTDns.def
UTDns.dsp
UTDns.dsw
UTDnsps.def
UTFinger
finger.bmp
Finger.rgs
FingerProp.rgs
icon_fin.ico
UTFinger.def
UTFinger.dsp
UTFinger.dsw
UTFingerps.def
UTFingerServ
fingerse.bmp
FingerServ.rgs
FingerServProp.rgs
icon_fin.ico
UTFingerServ.def
UTFingerServ.dsp
UTFingerServ.dsw
UTFingerServps.def
utftp
ftp.bmp
Ftp.rgs
FtpPropPage.rgs
icon_fin.ico
UTFtp.def
UTFtp.dsp
UTFtp.dsw
UTFtpps.def
utftpserv
FtpSercPropPage.rgs
ftpserve.bmp
FtpServer.rgs
FtpServPropPage.rgs
icon_fin.ico
UTFtpServ.def
UTFtpServ.dsp
UTFtpServ.dsw
UTFtpServps.def
UTHistory
history.bmp
History.rgs
HistoryPropPage.rgs
icon1.ico
UTHistory.def
UTHistory.dsp
UTHistory.dsw
UTHistoryps.def
uthttp
http.bmp
Http.rgs
HttpPropPage.rgs
icon_fin.ico
UTHttp.def
UTHttp.dsp
UTHttp.dsw
UTImap4
icon_fin.ico
imap4.bmp
IMAP4.rgs
IMAP4PropPage.rgs
UTImap4.def
UTImap4.dsp
UTImap4.dsw
UTImap4ps.def
UTMail
icon_fin.ico
mail.bmp
Mail.rgs
Mail2.rgs
MailPropPage.rgs
MailPropPage2.rgs
UTMail.def
UTMail.dsp
UTMail.dsw
UTMailps.def
UTMailServ
icon_fin.ico
mailserv.bmp
MailServ.rgs
MailServPropPage.rgs
UTMailServ.def
UTMailServ.dsp
UTMailServ.dsw
UTMailServps.def
UTMsg
icon_fin.ico
message.bmp
Message.rgs
UTMsg.def
UTMsg.dsp
UTMsg.dsw
UTMsgps.def
UTNntp
icon_fin.ico
nntp.bmp
Nntp.rgs
NntpPropPage.rgs
UTNntp.def
UTNntp.dsp
UTNntp.dsw
UTNntpps.def
utping
icon_fin.ico
ping.bmp
Ping.rgs
PingProp.rgs
UTPing.def
UTPing.dsp
UTPing.dsw
UTPingps.def
UTSocket
icon_fin.ico
socket.bmp
Socket.rgs
SocketPropPage.rgs
UTSocket.def
UTSocket.dsp
UTSocket.dsw
UTSocketps.def
Demos
DemoMaster.dsw
MsgMapper
res
mainfram.bmp
MsgMapper.ico
MsgMapperDoc.ico
Toolbar.bmp
Prop2
dns.jpg
DSITools.dsp
finger.jpg
Help
CONTEXT.CDX
Context.CHJ
CONTEXT.DBF
Context.DTO
CONTEXT.FPT
Context.HH
Context.rbh
Context.RTF
DIALOG.CID
DSITools.akw
DSITools.doc
DSITools.err
DSITools.hh
DSITOOLS.HLP
DSITools.hpj
DSITools.hpr
DSITools.hpt
DSITools.kkw
DSITools.rbh
DSITools.rtf
icon1.ico
icon2.ico
ping.jpg
Prop2.dsp
Prop2.dsw
SPLSHNetTools.BMP
tracert.jpg
whois.jpg
QuickMailer
icon1.ico
properties.GIF
QuickMailer.dsp
QuickMailer.dsw
small2.ico
SplashQM.BMP
Examples
Client
ASP
headline.gif
smallogo.gif
MFC
Imap4
IMAPClient.dsp
IMAPClient.dsw
res
IMAPClient.ico
IMAPClientDoc.ico
Toolbar.bmp
Nntp
NNTPclient.dsp
NNTPclient.dsw
res
Filecopy.avi
Findcomp.avi
NNTPclient.ico
SDK
DNS
Data.ico
DNSClient.dsp
DNSClient.dsw
Finger
FingerClient.dsp
FingerClient.dsw
icon1.ico
Ftp
FTPClient.dsp
FTPClient.dsw
FTPClient.vcproj.CODEPROJECT.Nish.user
FTPClient.vcproj.vspscc
icon1.ico
History
icon1.ico
log.dsp
log.dsw
Http
HTTPClient.dsp
HTTPClient.dsw
icon1.ico
Mail
icon1.ico
test.dsp
test.dsw
MX Lookup
Data.ico
MXLookup.dsp
MXLookup.dsw
Ping
Ping_c.dsp
Ping_c.dsw
UDP
Monitor
Monitor.dsp
Monitor.dsw
Trace
Trace.dsp
Trace.dsw
VisualBasic
Dns
DNSTest.frm
DNSTest.vbp
DNSTest.vbw
icon1.ico
Finger
FingerTest.frm
FingerTest.vbp
FingerTest.vbw
Ftp
FtpTest.frm
FtpTest.frx
FtpTest.vbp
FtpTest.vbw
icon1.ico
History
HistoryTest.frm
HistoryTest.frx
HistoryTest.vbp
HistoryTest.vbw
icon1.ico
Http
HttpTest.frm
HttpTest.frx
HttpTest.vbp
HttpTest.vbw
icon1.ico
Imap4
icon1.ico
IMAP4Test.frm
IMAP4Test.frx
IMAP4Test.SUP
IMAP4Test.vbp
IMAP4Test.vbw
Mail
DecodedMessage.frm
DecodedMessage.frx
icon1.ico
MailTest.frm
MailTest.frx
MailTest.vbp
MailTest.vbw
MartsMail
AutoHelp.bas
Bld.bmp
bullet1.bmp
Clip01.ico
COPY.BMP
CUT.BMP
Form1.frm
frmAbout.frm
frmAbout.frx
frmMain.frm
frmMain.frx
frmSmtp.frm
frmSmtp.frx
icon1.ico
Itl.bmp
Mail01a.ico
Mail03.ico
Mail16b.ico
MailClient.vbp
MailClient.vbw
PASTE.BMP
Print.bmp
Progress.frm
Progress.frx
SAVE.BMP
ServerInfo.frm
ServerInfo.frx
Undrln.bmp
Nntp
icon1.ico
NntpTest.frm
NntpTest.frx
NntpTest.vbp
NntpTest.vbw
PostNDecode.frm
Ping
icon1.ico
PingTest.frm
PingTest.frx
PingTest.vbp
PingTest.vbw
Search.avi
Socket
icon1.ico
SEARCH.AVI
SocketTest.frm
SocketTest.frx
SocketTest.vbp
SocketTest.vbw
UDPSocket
UDPTest.vbp
UDPTest.vbw
UdptestMain.frm
UdptestMain.frx
Master.dsw
Server
ASP
MFC
SampleServer
icon1.ico
res
Sample_S.clw
Sample_S.dsp
SDK
AccessControlServerDemo
AccessControlServerDemo.dsp
icon1.ico
Finger
fing_s.dsp
icon1.ico
Ftp
ftp_s.dsp
icon1.ico
Http
HTTP_s.dsp
icon1.ico
Mail
icon1.ico
server.dsp
server.dsw
SPLASHMlS.BMP
VisualBasic
Finger
FingerServTest.frm
FingerServTest.frx
FingerServTest.vbp
FingerServTest.vbw
Ftp
FTPServTest.frm
FTPServTest.frx
FTPServTest.vbp
FTPServTest.vbw
Http
HTTPServerTest.frm
HTTPServerTest.frx
HttpServerTest.vbp
HttpServerTest.vbw
Mail
AdministratorForm.frm
AdministratorForm.frx
MailServerTest.frm
MailServerTest.frx
MailServerTest.vbp
MailServerTest.vbw
service
Service.dsp
test.mak
svrtest
client.mak
SVRTest.dsp
Security
Examples
Client
Echo
EchoClient.dsp
EchoClient.dsw
EchoClientS.dsp
FTPs
client.dsp
client.dsw
FtpClientS.dsp
icon1.ico
Https
client.dsp
client.dsw
HttpClientS.dsp
icon1.ico
Imap4s
IMAPClient.dsp
IMAPClient.dsw
IMAPClientS.dsp
res
IMAPClient.ico
IMAPClientDoc.ico
Toolbar.bmp
Mail
icon1.ico
icon2.ico
MailClientS.dsp
test.dsp
test.dsw
MasterS.dsw
Server
Echo
EchoServer.dsp
EchoServer.dsw
EchoServerS.dsp
FTPs
FTPs.dsp
FTPs.dsw
FtpServerS.dsp
icon1.ico
Https
HttpServerS.dsp
HTTP_s.dsp
HTTP_s.dsw
icon1.ico
Mail
icon1.ico
MailServerS.dsp
server.dsp
server.dsw
SPLASHMlS.BMP
Test_Del
Test_Del.dsp
Test_Del.dsw
Util
CertManager
CertManager.dsp
CertManager.dsw
ultimatetcp-ip42_src.zip
Include
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
store.bmp
store_m.bmp
SecureServers
Source
UTSecureLayer
UTSecureLayer.dsp
UTSecureLayer.dsw
Servers
source
// =================================================================
//  class: CAboutDlg
//  File:  AboutDlg.h
//  
//  Purpose:
//
//	Display Finger ActiveX Control about box
//
// =================================================================
// Ultimate TCP/IP v4.2
// This software along with its related components, documentation and files ("The Libraries")
// is � 1994-2007 The Code Project (1612916 Ontario Limited) and use of The Libraries is
// governed by a software license agreement ("Agreement").  Copies of the Agreement are
// available at The Code Project (www.codeproject.com), as part of the package you downloaded
// to obtain this file, or directly from our office.  For a copy of the license governing
// this software, you may contact us at legalaffairs@codeproject.com, or by calling 416-849-8900.
// =================================================================
#ifndef __ABOUTDLG_H_
#define __ABOUTDLG_H_

#include "resource.h"       // main symbols
#include <atlhost.h>

// Suppress warnings for non-safe str fns. Transitional, for VC6 support.
#pragma warning (push)
#pragma warning (disable : 4996)

/////////////////////////////////////////////////////////////////////////////
// CAboutDlg
class CAboutDlg : 
	public CAxDialogImpl<CAboutDlg>
{
private:
	LPCSTR	lpszMessage;	// Pointer to the additional message

public:
	CAboutDlg(LPCSTR message = NULL) : lpszMessage(message)
	{
	}

	~CAboutDlg()
	{
	}

	enum { IDD = IDD_ABOUTDLG };

BEGIN_MSG_MAP(CAboutDlg)
	MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
	COMMAND_ID_HANDLER(IDOK, OnOK)
	COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
END_MSG_MAP()
// Handler prototypes:
//  LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
//  LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
//  LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);

	LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
	{

		#ifdef EVALUATION_MODE

			// Change about box text in case of evaluation mode
			char	szVersionText[50], szEvaluationVersionText[50];
			GetDlgItemText(IDC_VERSION_TEXT, szVersionText, sizeof(szVersionText) - 1);
			
			strcpy(szEvaluationVersionText, "Evaluation ");
			strcat(szEvaluationVersionText, szVersionText);
			strcat(szEvaluationVersionText, " Not for commercial use!");

			SetDlgItemText(IDC_VERSION_TEXT, szEvaluationVersionText);
		#endif

		// Set additional message in the version number field
		if(lpszMessage)
			SetDlgItemText(IDC_VERSION_TEXT, lpszMessage);

		return 1;  // Let the system set the focus
	}

	LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
	{
		EndDialog(wID);
		return 0;
	}

	LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
	{
		EndDialog(wID);
		return 0;
	}
};

#pragma warning (pop)

#endif //__ABOUTDLG_H_

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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

The Ultimate Toolbox
Web Developer
Canada Canada
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.
Group type: Organisation

381 members


| Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 25 Aug 2007
Article Copyright 2007 by The Ultimate Toolbox
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid