Alphabetical Class List   File List   Compound Members  

AboutDlg.h

00001 // AboutDlg.h : Declaration of the CAboutDlg
00002 
00003 #ifndef __ABOUTDLG_H_
00004 #define __ABOUTDLG_H_
00005 
00006 #include "resource.h"       // main symbols
00007 #include <atlhost.h>
00008 
00010 // CAboutDlg
00011 class CAboutDlg : 
00012         public CAxDialogImpl<CAboutDlg>
00013 {
00014 public:
00015         CAboutDlg()
00016         {
00017         }
00018 
00019         ~CAboutDlg()
00020         {
00021         }
00022 
00023         enum { IDD = IDD_ABOUTDLG };
00024 
00025 BEGIN_MSG_MAP(CAboutDlg)
00026         MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
00027         COMMAND_ID_HANDLER(IDOK, OnOK)
00028         COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
00029         COMMAND_HANDLER(IDC_VISIT_HOOPS3D, BN_CLICKED, OnClickedVisit_hoops3d)
00030 END_MSG_MAP()
00031 // Handler prototypes:
00032 //  LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
00033 //  LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
00034 //  LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
00035 
00036         LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
00037         {
00038                 return 1;  // Let the system set the focus
00039         }
00040 
00041         LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
00042         {
00043                 EndDialog(wID);
00044                 return 0;
00045         }
00046 
00047         LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
00048         {
00049                 EndDialog(wID);
00050                 return 0;
00051         }
00052         LRESULT OnClickedVisit_hoops3d(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
00053         {
00054                 // TODO : Add Code for control notification handler.
00055                 LoadUrl("http://www.hoops3d.com/streaming/streaming.htm");
00056                 return 0;
00057         }
00058         void LoadUrl (char *url);
00059 
00060 };
00061 
00062 #endif //__ABOUTDLG_H_


Copyright © 2002 Tech Soft 3D