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.

40 lines
749 B

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. owndraw.h
  5. Abstract:
  6. Helper macros for owner draw controls.
  7. --*/
  8. #define DIWindow(lpDI) \
  9. (lpDI->hwndItem)
  10. #define DIIndex(lpDI) \
  11. (lpDI->itemID)
  12. #define DIEntire(lpDI) \
  13. (lpDI->itemAction & ODA_DRAWENTIRE)
  14. #define DIFocusChanged(lpDI) \
  15. (lpDI->itemAction & ODA_FOCUS)
  16. #define DISelectionChanged(lpDI) \
  17. (lpDI->itemAction & ODA_SELECT)
  18. #define DISelected(lpDI) \
  19. (lpDI->itemState & ODS_SELECTED)
  20. #define DIDisabled(lpDI) \
  21. (lpDI->itemState & ODS_DISABLED)
  22. #define DIFocus(lpDI) \
  23. (lpDI->itemState & ODS_FOCUS)
  24.