mirror of https://github.com/tongzx/nt5src
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.
41 lines
709 B
41 lines
709 B
/*++
|
|
|
|
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)
|
|
|
|
|
|
|
|
|