home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / activedocument / doserver / doserver.h < prev    next >
C/C++ Source or Header  |  1997-05-28  |  2KB  |  77 lines

  1. /**************************************************************************
  2.    THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  3.    ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  4.    THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  5.    PARTICULAR PURPOSE.
  6.  
  7.    Copyright 1997 Microsoft Corporation.  All Rights Reserved.
  8. **************************************************************************/
  9.  
  10. /**************************************************************************
  11.  
  12.    File:          DOServer.h
  13.    
  14.    Description:   General defintions for the DOServer project
  15.  
  16. **************************************************************************/
  17.  
  18. /**************************************************************************
  19.    #include statements
  20. **************************************************************************/
  21.  
  22. #include <windows.h>
  23. #include <ole2.h>
  24. #include <docobj.h>
  25. #include "OleDoc.h"
  26. #include "OleDocVw.h"
  27. #include "OleObj.h"
  28. #include "DataObj.h"
  29. #include "OIPObj.h"
  30. #include "OIPAObj.h"
  31. #include "PerStor.h"
  32. #include "PerFile.h"
  33. #include "Utils.h"
  34. #include "Resource.h"
  35.  
  36. /**************************************************************************
  37.    function prototypes
  38. **************************************************************************/
  39.  
  40. BOOL CALLBACK MainDlgProc(HWND, UINT, WPARAM, LPARAM);
  41.  
  42. /**************************************************************************
  43.    global variables
  44. **************************************************************************/
  45.  
  46. extern HINSTANCE  g_hInst;
  47.  
  48. #define ARRAYSIZE(a)    (sizeof(a)/sizeof(a[0]))
  49.  
  50. #define DEFAULT_COLOR   (RGB(128, 0, 0))
  51. #define DEFAULT_X       100
  52. #define DEFAULT_Y       100
  53.  
  54. #define DEFAULT_PROMPT  (L"*.sdo")
  55. #define FILE_EXT        (TEXT(".sdo"))
  56. #define PROG_ID         (TEXT("Simple.DocObject"))
  57. #define DOC_NAME        (TEXT("Simple Doc Object"))
  58.  
  59. #define RED_COLOR (RGB(128, 0, 0))
  60. #define GREEN_COLOR (RGB(0, 128, 0))
  61. #define BLUE_COLOR (RGB(0, 0, 128))
  62.  
  63. // {F0FD0C00-65BA-11d0-B66F-00A0C90348D6}
  64. DEFINE_GUID(   CLSID_SimpleDocObject, 
  65.                0xf0fd0c00, 
  66.                0x65ba, 
  67.                0x11d0, 
  68.                0xb6, 
  69.                0x6f, 
  70.                0x0, 
  71.                0xa0, 
  72.                0xc9, 
  73.                0x3, 
  74.                0x48, 
  75.                0xd6);
  76.  
  77.