windows-nt/Source/XPSP1/NT/admin/controls/smonctrl/owndraw.h
2020-09-26 16:20:57 +08:00

41 lines
709 B
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
Copyright (C) 1996-1999 Microsoft Corporation
Module Name:
owndraw.h
Abstract:
Helper macros for owner draw controls.
--*/
#define DIWindow(lpDI) \
(lpDI->hwndItem)
#define DIIndex(lpDI) \
(lpDI->itemID)
#define DIEntire(lpDI) \
(lpDI->itemAction & ODA_DRAWENTIRE)
#define DIFocusChanged(lpDI) \
(lpDI->itemAction & ODA_FOCUS)
#define DISelectionChanged(lpDI) \
(lpDI->itemAction & ODA_SELECT)
#define DISelected(lpDI) \
(lpDI->itemState & ODS_SELECTED)
#define DIDisabled(lpDI) \
(lpDI->itemState & ODS_DISABLED)
#define DIFocus(lpDI) \
(lpDI->itemState & ODS_FOCUS)