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.
22 lines
832 B
22 lines
832 B
//############################################################################
|
|
//############################################################################
|
|
//
|
|
// this should be provided by ATL, but it's not
|
|
//
|
|
//############################################################################
|
|
//############################################################################
|
|
#ifndef REFLECTED_NOTIFY_CODE_HANDLER
|
|
#define REFLECTED_NOTIFY_CODE_HANDLER(cd, func) \
|
|
if(uMsg == OCM_NOTIFY && cd == ((LPNMHDR)lParam)->code) \
|
|
{ \
|
|
bHandled = TRUE; \
|
|
lResult = func((int)wParam, (LPNMHDR)lParam, bHandled); \
|
|
if(bHandled) \
|
|
return TRUE; \
|
|
}
|
|
#endif
|
|
|
|
#define GET_PARENT_OBJECT(className, member) \
|
|
className* pThis = \
|
|
((className*)((BYTE*)this - offsetof(className, member)))
|
|
|