home *** CD-ROM | disk | FTP | other *** search
/ ...taking it to the Macs! / ...taking it to the Macs!.iso / Extras / ActiveX Mac SDK / ActiveX SDK / Headers / MacMisc.h < prev    next >
Encoding:
Text File  |  1996-05-30  |  916 b   |  40 lines  |  [TEXT/CWIE]

  1. /*
  2.         MacMisc.h
  3.         This file contains misc stuff that was needed to port the ActiveX
  4.         Plugin to MetroWerks
  5.         
  6.         James O'Connor
  7.         5/30/96
  8. */
  9.  
  10.  
  11. /* I took this out of Xsite.cpp, it was used in Vkey.h
  12.     and I assume it's in some WLM header somewhere 
  13. */
  14. /*typedef struct tagMSG {
  15.     HWND        hwnd;
  16.     UINT        message;
  17.     WPARAM      wParam;
  18.     LPARAM      lParam;
  19.     DWORD       time;
  20.     DWORD       pt[2];
  21. } MSG;*/
  22.  
  23.  
  24. // jjo stolen from WINWLM.H
  25.  
  26. #define VK_UNKNOWN        0xF4
  27. #define VK_OPTION        0xF5
  28. #define VK_COMMAND        VK_MENU
  29.  
  30.  
  31. // From WINDEF.h
  32. #define MAKEWORD(a, b)      ((WORD)(((BYTE)(a)) | ((WORD)((BYTE)(b))) << 8))
  33. #define MAKELONG(a, b)      ((LONG)(((WORD)(a)) | ((DWORD)((WORD)(b))) << 16))
  34. #define LOWORD(l)           ((WORD)(l))
  35. #define HIWORD(l)           ((WORD)(((DWORD)(l) >> 16) & 0xFFFF))
  36. #define LOBYTE(w)           ((BYTE)(w))
  37. #define HIBYTE(w)           ((BYTE)(((WORD)(w) >> 8) & 0xFF))
  38.  
  39.  
  40.