00001 // 00002 // Copyright (c) 2002 by Tech Soft 3D, LLC. 00003 // The information contained herein is confidential and proprietary to 00004 // Tech Soft 3D, LLC., and considered a trade secret as defined under 00005 // civil and criminal statutes. Tech Soft 3D shall pursue its civil 00006 // and criminal remedies in the event of unauthorized use or misappropriation 00007 // of its trade secrets. Use of this information by anyone other than 00008 // authorized employees of Tech Soft 3D, LLC. is granted only under a 00009 // written non-disclosure agreement, expressly prescribing the scope and 00010 // manner of such use. 00011 // 00012 // $Header: /files/homes/master/cvs/hoops_master/docs_hoops/HoopsAtl/ref_manual/Attic/_about_dlg_8h-source.html,v 1.1.2.2 2004/06/28 20:59:56 rob Exp $ 00013 // 00014 00015 #ifndef __ABOUTDLG_H_ 00016 #define __ABOUTDLG_H_ 00017 00018 #include "resource.h" // main symbols 00019 #include <atlhost.h> 00020 00022 // CAboutDlg 00023 class CAboutDlg : 00024 public CAxDialogImpl<CAboutDlg> 00025 { 00026 public: 00027 CAboutDlg() 00028 { 00029 } 00030 00031 ~CAboutDlg() 00032 { 00033 } 00034 00035 enum { IDD = IDD_ABOUTDLG }; 00036 00037 BEGIN_MSG_MAP(CAboutDlg) 00038 MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) 00039 COMMAND_ID_HANDLER(IDOK, OnOK) 00040 COMMAND_ID_HANDLER(IDCANCEL, OnCancel) 00041 COMMAND_HANDLER(IDC_VISIT_HOOPS3D, BN_CLICKED, OnClickedVisit_hoops3d) 00042 END_MSG_MAP() 00043 // Handler prototypes: 00044 // LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 00045 // LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); 00046 // LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled); 00047 00048 LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) 00049 { 00050 return 1; // Let the system set the focus 00051 } 00052 00053 LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) 00054 { 00055 EndDialog(wID); 00056 return 0; 00057 } 00058 00059 LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) 00060 { 00061 EndDialog(wID); 00062 return 0; 00063 } 00064 LRESULT OnClickedVisit_hoops3d(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) 00065 { 00066 // TODO : Add Code for control notification handler. 00067 LoadUrl("http://www.hoops3d.com"); 00068 return 0; 00069 } 00070 void LoadUrl (char *url); 00071 00072 }; 00073 00074 #endif //__ABOUTDLG_H_