home *** CD-ROM | disk | FTP | other *** search
/ Troubleshooting Netware Systems / CSTRIAL0196.BIN / attach / msj / v10n03 / bocole.exe / OCF4MFC.H < prev    next >
C/C++ Source or Header  |  1995-03-01  |  2KB  |  78 lines

  1. #if !defined(__OCF4MFC_H)
  2. #define __OCF4MFC_H
  3.  
  4. #include <afxwin.h> 
  5. #include <afxdlgs.h>
  6.  
  7. #pragma option -Vh-         // Don't coerce huge classes for OCF
  8. #include <ocf/ocfpch.h>
  9. #include "ocfhlpr.h"
  10. #include "ocfhlpr.rh"
  11. #pragma option -Vh
  12.  
  13. //
  14. // Class CMDIFrameOCF
  15. // ===== ============
  16. //
  17. class CMDIFrameOCF : public CMDIFrameWnd {
  18.  
  19.     DECLARE_DYNAMIC(CMDIFrameOCF)
  20.  
  21.   protected:
  22.     TOleFrameWin* OCFHlpr;
  23.  
  24.     // message handlers
  25.     //{{AFX_MSG(CMDIFrameOCF)
  26.     afx_msg int     OnCreate(LPCREATESTRUCT lpCreateStruct);
  27.     afx_msg void    OnDestroy();
  28.     afx_msg LRESULT OnOcEvent(WPARAM wp, LPARAM lp);
  29.     //}}AFX_MSG
  30.  
  31.  
  32.     // OCF event handlers
  33.     //
  34.     bool       OnOcAppFrameRect(HWND hwnd, TRect far* rect);
  35.     bool       OnOcAppInsMenus(HWND hwnd, TOcMenuDescr far* sharedMenu);
  36.     bool       OnOcAppMenus(HWND hwnd, TOcMenuDescr far* menuDescr);
  37.     bool       OnOcAppProcessMsg(HWND, MSG far*);
  38.     bool       OnOcAppBorderSpaceReq(HWND, TRect far*);
  39.     bool       OnOcAppBorderSpaceSet(HWND hwnd, TRect far* rect);
  40.     void       OnOcAppStatusText(HWND, const char far* /*text*/);
  41.     void       OnOcAppRestoreUI(HWND hwnd);
  42.  
  43.     DECLARE_MESSAGE_MAP()
  44. };
  45.  
  46.  
  47.  
  48. //
  49. // Class CMDIChildOCF
  50. // ===== ============
  51. //
  52. class CMDIChildOCF : public CMDIChildWnd {
  53.  
  54.   protected:
  55.     TOleWin*  OCFHlpr;
  56.  
  57.     // message handlers
  58.     //{{AFX_MSG(CMDIChildOCF)
  59.     afx_msg int     OnCreate(LPCREATESTRUCT lpCreateStruct);
  60.     afx_msg void    OnDestroy();
  61.  
  62.     afx_msg void    OnLButtonDown(UINT nFlags, CPoint pt);
  63.     afx_msg void    OnLButtonDblClk(UINT nFlags, CPoint pt);
  64.  
  65.     afx_msg void    OnSize(UINT type, int cx, int cy);
  66.  
  67.     afx_msg LRESULT OnOcEvent(WPARAM wp, LPARAM lp);
  68.  
  69.     afx_msg void    OnUpdateInsertObject(CCmdUI* pCmdUI);
  70.     afx_msg void    OnInsertObject();
  71.     //}}AFX_MSG
  72.  
  73.     DECLARE_MESSAGE_MAP()
  74. };
  75.  
  76.  
  77. #endif  //  __OCF4MFC_H
  78.