Posted: Mon Aug 26, 2002 10:37 am
Restored from previous forum. Originally posted by Justin.
I'm trying to catch the LVN_ITEMACTIVATE notification using the windows callback, this message is sent in a WM_NOTIFY msg, the lparam of this msg is a pointer to a NMHDR structure, the code member is the notification message.
I can't think of a way to access the NMHDR structure through the pointer returned in the lparam of WM_NOTIFY, how it's done this in PB?
Here is the structure:
typedef struct tagNMHDR {
HWND hwndFrom;
UINT idFrom;
UINT code;
} NMHDR;
And a detailed explanation of the LVN_ITEMACTIVATE msg:
http://msdn.microsoft.com/library/defau ... Styles.asp
I'm trying to catch the LVN_ITEMACTIVATE notification using the windows callback, this message is sent in a WM_NOTIFY msg, the lparam of this msg is a pointer to a NMHDR structure, the code member is the notification message.
I can't think of a way to access the NMHDR structure through the pointer returned in the lparam of WM_NOTIFY, how it's done this in PB?
Here is the structure:
typedef struct tagNMHDR {
HWND hwndFrom;
UINT idFrom;
UINT code;
} NMHDR;
And a detailed explanation of the LVN_ITEMACTIVATE msg:
http://msdn.microsoft.com/library/defau ... Styles.asp