www.pudn.com > FTP¿Í»§¶Ë³ÌÐòµÄÔ´³ÌÐò.zip > About.h


// About.h : Declaration of the CAbout 
// Copyright © 1999 Ziff-Davis, Inc. 
// Written by Ignacio Alvarez 
 
#ifndef __ABOUT_H_ 
#define __ABOUT_H_ 
 
#include "resource.h"       // main symbols 
#include  
 
///////////////////////////////////////////////////////////////////////////// 
// CAbout 
class CAbout :  
	public CAxDialogImpl 
{ 
public: 
	CAbout() 
	{ 
	} 
 
	~CAbout() 
	{ 
	} 
 
	enum { IDD = IDD_ABOUT }; 
 
BEGIN_MSG_MAP(CAbout) 
	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) 
	{ 
		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; 
	} 
}; 
 
#endif //__ABOUT_H_