home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / activexcontrol / basectl / framewrk / ctlhelp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-05  |  1.7 KB  |  47 lines

  1. //=--------------------------------------------------------------------------=
  2. // CtlHelp.H
  3. //=--------------------------------------------------------------------------=
  4. // Copyright 1995-1997 Microsoft Corporation.  All Rights Reserved.
  5. //
  6. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 
  7. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 
  8. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 
  9. // PARTICULAR PURPOSE.
  10. //=--------------------------------------------------------------------------=
  11. //
  12. // routines to help out our implementation of COleControl.
  13. //
  14.  
  15. #ifndef _CTLHELP_H_
  16.  
  17. //=--------------------------------------------------------------------------=
  18. // these two tables are used to get information on sizes about data types
  19. // the first is used mostly in persistence, while the second is used for
  20. // events
  21. //
  22. extern const BYTE g_rgcbDataTypeSize [];
  23. extern const BYTE g_rgcbPromotedDataTypeSize [];
  24.  
  25.  
  26.  
  27. //=--------------------------------------------------------------------------=
  28. // misc functions
  29. //
  30. short       _SpecialKeyState(void);
  31. void WINAPI CopyAndAddRefObject(void *, const void *, DWORD);
  32. void WINAPI CopyOleVerb(void *, const void *, DWORD);
  33.  
  34. HWND        CreateReflectWindow(BOOL fVisible, HWND hwndParent, int, int, SIZEL *);
  35. void        CleanupReflection();
  36.  
  37. //=--------------------------------------------------------------------------=
  38. // little private guid we'll use to help identify our objects
  39. // {00D97180-FCF7-11ce-A09E-00AA0062BE57}
  40. //
  41. #define Data1_IControlPrv    0xd97180
  42.  
  43. DEFINE_GUID(IID_IControlPrv, 0xd97180, 0xfcf7, 0x11ce, 0xa0, 0x9e, 0x0, 0xaa, 0x0, 0x62, 0xbe, 0x57);
  44.  
  45. #define _CTLHELP_H_
  46. #endif // _CTLHELP_H_
  47.