home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / componen / interact / demo / data.2 / samples / mfc / TRAVEL / MAINAPP.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-05  |  2.2 KB  |  93 lines

  1.  
  2.      /********************************************************************
  3.       *
  4.       *   Source File:  mainapp.h                                         
  5.       *   Author:       RC                                                
  6.       *   Module:       C++ Header file for travel application            
  7.       *   Program Desc:                                                                                 
  8.       *   Date:         Fri Apr 05 14:06:00 1996                          
  9.       *   Language:     MFC C++ 3.0
  10.       *
  11.       ********************************************************************/
  12.  
  13.  
  14. #ifndef __MAINAPP__H
  15. #define __MAINAPP__H
  16.  
  17. //Regen_Main_Classes
  18.  
  19. class CIDO;
  20. #define IDC_IDO1  701
  21.  
  22. typedef struct
  23. {
  24.    long lDistance;
  25.    char szNamePrevious[99+1];
  26.    char szNamePreviousLine[99+1];
  27. } USERDATA, FAR * LPUSERDATA;
  28.  
  29. //Regen_Main_Classes
  30.  
  31. // --------------- Main Window Object ---------------
  32.  
  33. class Ctravel : public CWinApp 
  34. {
  35. public:
  36.    virtual BOOL InitInstance();
  37.    virtual BOOL ExitInstance();
  38.    //Regen_AppClass
  39.    //Regen_AppClass
  40. };
  41.  
  42. //Regen_WinApp
  43. //Regen_WinApp
  44.  
  45. // --------------- Main Window Dialog of the application -------------------
  46.  
  47. class  CMainWindow : public CDialog
  48. {
  49. private:
  50.    //Regen_CMainDlgWin_Private
  51.  
  52. public:
  53.    CIDO * m_pIDO;
  54.  
  55.    //Regen_CMainDlgWin_Private
  56.  
  57. public:
  58.    CMainWindow(UINT nIDTemplateName, CWnd *ParentWnd);
  59.    ~CMainWindow();
  60.  
  61.    afx_msg void OnClose();
  62.  
  63.    //{{AFX_MSG(CMainWindow)
  64.  
  65.    afx_msg void OnIDM_SHORTESTDISTANCE();
  66.    afx_msg void OnIDM_FILE_PRINT();
  67.    afx_msg void OnIDM_APP_EXIT();
  68.    afx_msg void OnIDM_ABOUT();
  69.    afx_msg LRESULT Onidomnentityaddrequest(WPARAM wParam, LPARAM lParam);
  70.    afx_msg LRESULT Onidomnrelationadded(WPARAM wParam, LPARAM lParam);
  71.    afx_msg LRESULT Onidomnrelationaddrequest(WPARAM wParam, LPARAM lParam);
  72.    afx_msg void OnDestroy();
  73.    afx_msg void OnSize(UINT nType, int cx, int cy);
  74.    virtual BOOL OnInitDialog();
  75.    virtual void PostNcDestroy();
  76.    //}}AFX_MSG
  77.    //Regen_MainClassMsg
  78.    //Regen_MainClassMsg
  79.  
  80.    CMenu* pMenu;
  81.  
  82.  
  83.    //Regen_MainClass
  84.    //Regen_MainClass
  85.  
  86.    DECLARE_MESSAGE_MAP()
  87. };
  88.  
  89. #endif // __MAINAPP__H
  90. //Regen_CustomCode
  91. //Regen_CustomCode
  92.  
  93.