home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / mac / SiteBldr / AMOVIE / SDK / _SETUP / COMMON.Z / ballprop.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-17  |  1.2 KB  |  54 lines

  1. //==========================================================================;
  2. //
  3. //  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. //  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. //  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. //  PURPOSE.
  7. //
  8. //  Copyright (c) 1992 - 1996  Microsoft Corporation.  All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------;
  11. //
  12. // ballprop.cpp
  13. //
  14.  
  15. #include <streams.h>
  16. #include <olectl.h>
  17. #include <memory.h>
  18.  
  19. #include "resource.h"
  20. #include "balluids.h"
  21. #include "ball.h"
  22. #include "fball.h"
  23. #include "ballprop.h"
  24.  
  25. // *
  26. // * CBallProperties
  27. // *
  28.  
  29.  
  30. //
  31. // CreateInstance
  32. //
  33. CUnknown *CBallProperties::CreateInstance(LPUNKNOWN lpunk, HRESULT *phr) {
  34.  
  35.     CUnknown *punk = new CBallProperties(lpunk, phr);
  36.     if (punk == NULL) {
  37.         *phr = E_OUTOFMEMORY;
  38.     }
  39.  
  40.     return punk;
  41. }
  42.  
  43. //
  44. // CBallProperties::Constructor
  45. //
  46. // initialise a CBallProperties object.
  47. CBallProperties::CBallProperties(LPUNKNOWN pUnk, HRESULT *phr)
  48.     : CBasePropertyPage(NAME("Ball Property Page"),pUnk,phr,IDD_BALLPROP,
  49.                                 IDS_TITLE)
  50. {
  51. }
  52.  
  53.  
  54.