home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / inole2 / chap12 / patron / client.cpp < prev    next >
C/C++ Source or Header  |  1995-05-03  |  1KB  |  61 lines

  1. /*
  2.  * CLIENT.CPP
  3.  * Patron Chapter 12
  4.  *
  5.  * Implementation of the CPatronClient class that just makes sure
  6.  * we get a CPatronDoc on doc creation and that we initialize fully.
  7.  *
  8.  * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  9.  *
  10.  * Kraig Brockschmidt, Microsoft
  11.  * Internet  :  kraigb@microsoft.com
  12.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  13.  */
  14.  
  15.  
  16. #include "patron.h"
  17.  
  18.  
  19. /*
  20.  * CPatronClient::CPatronClient
  21.  * CPatronClient::~CPatronClient
  22.  *
  23.  * Constructor Parameters:
  24.  *  hInst           HINSTANCE of the application.
  25.  *  pFR             PCFrame to the frame object.
  26.  */
  27.  
  28. CPatronClient::CPatronClient(HINSTANCE hInst, PCFrame pFR)
  29.     : CClient(hInst, pFR)
  30.     {
  31.     return;
  32.     }
  33.  
  34.  
  35. CPatronClient::~CPatronClient(void)
  36.     {
  37.     return;
  38.     }
  39.  
  40.  
  41.  
  42.  
  43.  
  44. /*
  45.  * CPatronClient::CreateCDocument
  46.  *
  47.  * Purpose:
  48.  *  Constructs a new document specific to the application.
  49.  *
  50.  * Parameters:
  51.  *  None
  52.  *
  53.  * Return Value:
  54.  *  PCDocument      Pointer to the new document object.
  55.  */
  56.  
  57. PCDocument CPatronClient::CreateCDocument(void)
  58.     {
  59.     return (PCDocument)(new CPatronDoc(m_hInst, m_pFR, m_pAdv));
  60.     }
  61.