home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / internet / wwwquote / wwwquote.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  2.5 KB  |  81 lines

  1. // WWWQuote.h : main header file for the WWWQUOTE DLL
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 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 related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #ifndef __AFXWIN_H__
  14.     #error include 'stdafx.h' before including this file for PCH
  15. #endif
  16.  
  17. #include "resource.h"       // main symbols
  18.  
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CWWWQuoteApp
  21. // See WWWQuote.cpp for the implementation of this class
  22. //
  23.  
  24. class CWWWQuoteApp : public CWinApp
  25. {
  26. public:
  27.     CWWWQuoteApp();
  28.  
  29. // Overrides
  30.     // ClassWizard generated virtual function overrides
  31.     //{{AFX_VIRTUAL(CWWWQuoteApp)
  32.     //}}AFX_VIRTUAL
  33.  
  34.     //{{AFX_MSG(CWWWQuoteApp)
  35.         // NOTE - the ClassWizard will add and remove member functions here.
  36.         //    DO NOT EDIT what you see in these blocks of generated code !
  37.     //}}AFX_MSG
  38.     DECLARE_MESSAGE_MAP()
  39. };
  40.  
  41.  
  42. /////////////////////////////////////////////////////////////////////////////
  43. //
  44. //
  45. //
  46.  
  47. class CWWWQuote : public CHttpServer
  48. {
  49. public:
  50.     CWWWQuote();
  51.     ~CWWWQuote();
  52.  
  53. // parsed commands
  54.     void Quote(CHttpServerContext* pCtxt);
  55.     void Issues(CHttpServerContext* pCtxt, LPCTSTR pszMethod);
  56.     void GetQuotes(CHttpServerContext* pCtxt, LPTSTR pstrTicker,
  57.         int nMonth, int nYear, int nMinMonth, int nMinYear,
  58.         int nMaxMonth, int nMaxYear);
  59.     void PreviousMonth(CHttpServerContext* pCtxt, LPTSTR pstrTicker,
  60.         int nMonth, int nYear, int nMinMonth, int nMinYear,
  61.         int nMaxMonth, int nMaxYear);
  62.     void NextMonth(CHttpServerContext* pCtxt, LPTSTR pstrTicker,
  63.         int nMonth, int nYear, int nMinMonth, int nMinYear,
  64.         int nMaxMonth, int nMaxYear);
  65.  
  66. // helpers
  67.     void WriteIssuesHeader(CHttpServerContext* pCtxt);
  68.     void WriteQuoteHeader(CHttpServerContext* pCtxt, LPCTSTR pszTicker);
  69.  
  70.     void WriteNextButton(CHttpServerContext* pCtxt, LPCTSTR pszTicker,
  71.         int nMonth, int nYear, int nMinMonth, int nMinYear,
  72.         int nMaxMonth, int nMaxYear);
  73.     void WritePrevButton(CHttpServerContext* pCtxt, LPCTSTR pszTicker,
  74.         int nMonth, int nYear, int nMinMonth, int nMinYear,
  75.         int nMaxMonth, int nMaxYear);
  76.  
  77.     BOOL LoadLongResource(CString& str, UINT nID);
  78.     void WritePageTitle(CHttpServerContext* pCtxt, UINT nID);
  79.     DECLARE_PARSE_MAP()
  80. };
  81.