home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / dbmsg / mapi / common / wrap3d.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-11  |  1.5 KB  |  52 lines

  1. /*
  2.  *  WRAP3D.H
  3.  *  
  4.  *  Wrapper functions for ctl3d. They are callable on WinNT, Win95
  5.  *  (where they are no-ops), and Win16.
  6.  *  
  7.  */
  8.  
  9. #ifndef _WRAP3D_H_
  10. #define _WRAP3D_H_
  11.  
  12. #include <ctl3d.h>
  13.  
  14. #ifndef EXTERN_C
  15. #ifdef __cplusplus
  16. #define EXTERN_C extern "C"
  17. #else
  18. #define EXTERN_C
  19. #endif
  20. #endif
  21.  
  22. EXTERN_C LPVOID WINAPI  CTL3D_Initialize(HINSTANCE hinstMe);
  23. EXTERN_C void   WINAPI  CTL3D_Uninitialize(LPVOID lpv);
  24. EXTERN_C void   WINAPI  CTL3D_Subclass(LPVOID lpv, HWND hwnd, DWORD dwFlags);
  25. EXTERN_C void   WINAPI  CTL3D_AutoSubclass(LPVOID lpv, HINSTANCE hinst, BOOL FAR * pf);
  26. EXTERN_C BOOL   WINAPI  CTL3D_IsAutoSubclass(LPVOID lpv);
  27. EXTERN_C void   WINAPI  CTL3D_CeaseAutoSubclass(LPVOID lpv, BOOL f);
  28. EXTERN_C BOOL   WINAPI  CTL3D_ColorChange(LPVOID lpv);
  29. EXTERN_C BOOL   WINAPI  CTL3D_SubclassCtl(LPVOID lpv, HWND hwnd);
  30. EXTERN_C WORD   WINAPI  CTL3D_GetVer(LPVOID lpv);
  31.  
  32. /*  Format of the LPV */
  33.  
  34. typedef struct
  35. {
  36.     HINSTANCE   hinst;              /* handle of ctl3d DLL */
  37.     HINSTANCE   hinstMe;            /* handle of caller */
  38.     BOOL        fRegistered;        /* TRUE if we've called Ctl3dRegister */
  39.  
  40.     FARPROC     fpUnregister;       /* entry points into ctl3d DLL... */
  41.     FARPROC     fpSubclassDlgEx;
  42.     FARPROC     fpIsAutoSubclass;
  43.     FARPROC     fpAutoSubclass;
  44.     FARPROC     fpUnAutoSubclass;
  45.     FARPROC     fpColorChange;
  46.     FARPROC     fpSubclassCtl;
  47.     FARPROC     fpGetVer;
  48. } CTX3D, FAR *LPCTX3D;
  49.  
  50. #endif /* _WRAP3D_H_ */
  51.  
  52.