home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK8 / MFC / SAMPLES / TESTCLNT / TESTCLNT.H$ / testclnt
Encoding:
Text File  |  1992-03-18  |  3.3 KB  |  118 lines

  1. // testclnt.h : testclnt.h is the prototypes for the AFXOLE Test Client.
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and Microsoft
  9. // QuickHelp documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #ifndef __TESTCLNT_H__
  14. #define __TESTCLNT_H__
  15.  
  16. #include <afxole.h>
  17. #include "newdoc.h"
  18. #include "newclnt.h"
  19.  
  20. class CTestClient;
  21.  
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CTestClient:
  24. // See testclnt.cpp for the code to the member functions and the message map.
  25. //
  26. class CTestClient : public CFrameWnd
  27. {
  28. public:
  29.     DECLARE_DYNAMIC(CTestClient)
  30.  
  31.     CTestClient();
  32.     ~CTestClient();
  33.  
  34.     // Message Handling Routines
  35.     afx_msg int  OnCreate(LPCREATESTRUCT p);
  36.     afx_msg void OnDestroy();
  37.     afx_msg void OnDrawClipboard();
  38.     afx_msg void OnChangeCbChain(HWND hRemove, HWND hNew);
  39.     afx_msg void OnInitMenu(CMenu* pMenu);
  40.     afx_msg void OnPaint();
  41.     afx_msg void OnSize(UINT nType, int cx, int cy);
  42.     afx_msg void OnClose();
  43.     afx_msg BOOL OnCommand(UINT wParam, LONG lParam);
  44.  
  45.     // Command Table Messages
  46.     afx_msg void OnMenuExit();
  47.     afx_msg void OnEditLinks();
  48.     afx_msg void OnAbout();
  49.     afx_msg void OnPasteLink();
  50.     afx_msg void OnCopy();
  51.     afx_msg void OnPaste();
  52.     afx_msg void OnInsertObject();
  53.     afx_msg void OnFileSave();  
  54.     afx_msg void OnFileSaveAs();
  55.     afx_msg void OnFileOpen();
  56.     afx_msg void OnChanged();
  57.     afx_msg void OnLogging();
  58.     afx_msg void OnCloseApi();
  59.     afx_msg void OnUpdateApi();
  60.     afx_msg void OnReleaseApi();
  61.     afx_msg void OnDeleteApi();
  62.     afx_msg void OnReconnectApi();
  63.     afx_msg void OnRevertApi();
  64.     afx_msg void OnSavedApi();
  65.     afx_msg void OnRevert();
  66.     afx_msg void OnLinks();
  67.  
  68.     // Helper Routines which are not called by Windows Messages
  69.     void DoVerb(UINT nVerb);
  70.     BOOL DrawObject();
  71.     void FixObjectBounds (CRect& rect);
  72.     BOOL FileDlg(BOOL bOpen, int nMaxFile, LPSTR szFile);
  73.     void Serialize(CArchive& ar);
  74.     BOOL LoadFile(const char* pName);
  75.     void SaveFile(BOOL bNewFileName);
  76.     void LogError(char* pszFileName, int nStatus);
  77.     BOOL QuerySaveChanges();
  78.     void PrepareDC(CDC* pDC);
  79.  
  80.     CNewClient*         m_pClient;
  81.     CNewClientDoc*      m_pDoc;
  82.     CWnd*               m_pBorder;
  83.     HWND                m_hWndNextView;
  84.     CString             m_title, m_szFileName, m_szLogFile;
  85.     BOOL                m_bRevertAvailable, m_bLogging, m_bUntitled, m_bDirty;
  86.  
  87.     // Controls for Information Window
  88.     CListBox*           m_pClipFormat; 
  89.     CListBox*           m_pObjectFormat;
  90.     CStatic*            m_pInfoTitle;
  91.     CStatic*            m_pItemTitle; 
  92.     CStatic*            m_pClipTitle; 
  93.     CStatic*            m_pObjectTitle;
  94.     CStatic*            m_pNameTitle;
  95.     
  96.     DECLARE_MESSAGE_MAP()
  97. };
  98.  
  99.  
  100.  
  101.  
  102. /////////////////////////////////////////////////////////////////////////////
  103. // CTheApp:
  104. // See testclnt.cpp for the code to the InitInstance member function.
  105. //
  106. class CTheApp : public CWinApp
  107. {
  108. public:
  109.     CTheApp() : CWinApp("testclnt") { }
  110.     virtual BOOL InitInstance();
  111.     BOOL PumpMessage();
  112. };
  113.  
  114. /////////////////////////////////////////////////////////////////////////////
  115.  
  116. #endif // __TESTCLNT_H__
  117.  
  118.