home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / msj / msjv4_6 / spyglass / spyglass.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-07  |  1.2 KB  |  39 lines

  1. /*
  2.  * WINDOWS SPYGLASS - HEADER FILE
  3.  *
  4.  * LANGUAGE      : Microsoft C5.1
  5.  * MODEL         : small
  6.  * ENVIRONMENT   : Microsoft Windows 2.1 SDK
  7.  * STATUS        : operational
  8.  *
  9.  * 08/31/88 1.00 - Kevin P. Welch - initial creation.
  10.  *
  11.  */
  12.  
  13. /* system menu definitions */
  14. #define  SC_1X          0x0001
  15. #define  SC_2X          0x0002
  16. #define  SC_4X          0x0004
  17. #define  SC_8X          0x0008
  18. #define  SC_16X         0x0010
  19.  
  20. /* general programming extensions */
  21. #define  ID(x)          GetWindowWord(x,GWW_ID)
  22. #define  PARENT(x)      GetWindowWord(x,GWW_HWNDPARENT)
  23. #define  INSTANCE(x)    GetWindowWord(x,GWW_HINSTANCE)
  24.  
  25. #define  WIDTH(x)       (##x.right-##x.left)
  26. #define  HEIGHT(x)      (##x.bottom-##x.top)
  27.  
  28. #define  WARNING(x,y)   MessageBox(x,y,"Windows SpyGlass",MB_OK|MB_ICONHAND)
  29.  
  30. /* spyglass window style & location definitions */
  31. #define  SPYGLASS_STYLE       WS_TILEDWINDOW|WS_CLIPCHILDREN
  32. #define  SPYGLASS_XPOS        CW_USEDEFAULT
  33. #define  SPYGLASS_YPOS        CW_USEDEFAULT
  34. #define  SPYGLASS_WIDTH       GetSystemMetrics(SM_CXSCREEN)/3
  35. #define  SPYGLASS_HEIGHT      GetSystemMetrics(SM_CYSCREEN)/2
  36.  
  37. /* global function definitions */
  38. LONG FAR PASCAL   SpyGlassWndFn( HWND, WORD, WORD, LONG );
  39.