Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
6.0 KiB

  1. /**INC+**********************************************************************/
  2. /* */
  3. /* ndcgctyp.h */
  4. /* */
  5. /* DC-Groupware complex types - Windows NT specific header. */
  6. /* */
  7. /* Copyright(c) Microsoft 1996-1997 */
  8. /* */
  9. /****************************************************************************/
  10. /* Changes: */
  11. /* */
  12. // $Log: Y:/logs/h/dcl/NDCGCTYP.H_v $
  13. //
  14. // Rev 1.5 23 Jul 1997 10:48:00 mr
  15. // SFR1079: Merged \server\h duplicates to \h\dcl
  16. //
  17. // Rev 1.1 19 Jun 1997 21:52:26 OBK
  18. // SFR0000: Start of RNS codebase
  19. //
  20. // Rev 1.4 08 Jul 1997 08:49:36 KH
  21. // SFR1022: Add message parameter extraction macros
  22. /* */
  23. /**INC-**********************************************************************/
  24. #ifndef _H_NDCGCTYP
  25. #define _H_NDCGCTYP
  26. /****************************************************************************/
  27. /* */
  28. /* INCLUDES */
  29. /* */
  30. /****************************************************************************/
  31. /****************************************************************************/
  32. /* */
  33. /* TYPES */
  34. /* */
  35. /****************************************************************************/
  36. typedef DCUINT32 DCSURFACEID;
  37. typedef DCSURFACEID DCPTR PDCSURFACEID;
  38. typedef FILETIME DCFILETIME;
  39. /****************************************************************************/
  40. /* */
  41. /* MACROS */
  42. /* */
  43. /****************************************************************************/
  44. /****************************************************************************/
  45. /* String manipulation */
  46. /****************************************************************************/
  47. #define DC_CHARNEXT(pCurrentChar) (CharNext(pCurrentChar))
  48. #define DC_CHARPREV(pStringStart, pCurrentChar) \
  49. (CharPrev(pStringStart, pCurrentChar))
  50. #define DC_CHARLOWER(pString) (CharLower(pString))
  51. /****************************************************************************/
  52. /* Message parameter extraction macros. */
  53. /****************************************************************************/
  54. /* WM_COMMAND */
  55. /* */
  56. /* 16-bit 32-bit */
  57. /* wParam command identifier notification code (HI), */
  58. /* command identifier (LO) */
  59. /* lParam control hwnd (HI), control hwnd */
  60. /* notification code (LO) */
  61. /****************************************************************************/
  62. #define DC_GET_WM_COMMAND_ID(wParam) (LOWORD(wParam))
  63. #define DC_GET_WM_COMMAND_NOTIFY_CODE(wParam, lParam) (HIWORD(wParam))
  64. #define DC_GET_WM_COMMAND_HWND(lParam) ((HWND)(lParam))
  65. /****************************************************************************/
  66. /* WM_ACTIVATE */
  67. /* */
  68. /* 16-bit 32-bit */
  69. /* wParam activation flag minimized flag (HI), */
  70. /* activation flag (LO) */
  71. /* lParam minimized flag (HI), hwnd */
  72. /* hwnd (LO) */
  73. /****************************************************************************/
  74. #define DC_GET_WM_ACTIVATE_ACTIVATION(wParam) (LOWORD(wParam))
  75. #define DC_GET_WM_ACTIVATE_MINIMIZED(wParam, lParam) (HIWORD(wParam))
  76. #define DC_GET_WM_ACTIVATE_HWND(lParam) ((HWND)(lParam))
  77. /****************************************************************************/
  78. /* WM_HSCROLL and WM_VSCROLL */
  79. /* */
  80. /* 16-bit 32-bit */
  81. /* wParam scroll code position (HI), */
  82. /* scroll code (LO) */
  83. /* lParam hwnd (HI), hwnd */
  84. /* position (LO) */
  85. /****************************************************************************/
  86. #define DC_GET_WM_SCROLL_CODE(wParam) (LOWORD(wParam))
  87. #define DC_GET_WM_SCROLL_POSITION(wParam, lParam) (HIWORD(wParam))
  88. #define DC_GET_WM_SCROLL_HWND(lParam) ((HWND)(lParam))
  89. #endif /* _H_NDCGCTYP */