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 / chap01 / patron / page.cpp < prev    next >
C/C++ Source or Header  |  1995-05-03  |  751b  |  50 lines

  1. /*
  2.  * PAGE.CPP
  3.  * Patron Chapter 1
  4.  *
  5.  * Implementation of the CPage class to manage a single page.
  6.  *
  7.  * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  8.  *
  9.  * Kraig Brockschmidt, Microsoft
  10.  * Internet  :  kraigb@microsoft.com
  11.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  12.  */
  13.  
  14.  
  15. #include "patron.h"
  16.  
  17.  
  18. /*
  19.  * CPage::CPage
  20.  * CPage::~CPage
  21.  *
  22.  * Constructor Parameters:
  23.  *  dwID            DWORD identifier for this page.
  24.  */
  25.  
  26. CPage::CPage(DWORD dwID)
  27.     {
  28.     m_dwID=dwID;
  29.     return;
  30.     }
  31.  
  32. CPage::~CPage(void)
  33.     {
  34.     return;
  35.     }
  36.  
  37.  
  38.  
  39. /*
  40.  * CPage::GetID
  41.  *
  42.  * Return Value:
  43.  *  DWORD           dwID field in this page.
  44.  */
  45.  
  46. DWORD CPage::GetID(void)
  47.     {
  48.     return m_dwID;
  49.     }
  50.