reinterpret_cast代表强制转化,即把pNMHDR强制转化成LPNMITEMACTIVATE类型的。
pNMHDR
NMHDR=Notify Message Handler (确认消息句柄)
typedef struct tagNMHDR{
HWND hwndFrom; //handle of control sending message 控件的句柄,用来发送消息。
UINT idFrom; //identifier of control sending message
UINT code; // notification code;
}
http://baike.baidu.com/link?url=Rr34uljpgHvTK6AxNinUNYDhn5mshQ9ib7E8I0h2om4RKM2O8uF31ci4p2c4wXwWUfbekr0UIxy6u3gx4-Mr3a
LPNMITEMACTIVATE pNMItemActivate = reinterpret_cast<LPNMITEMACTIVATE>(pNMHDR);,布布扣,bubuko.com
LPNMITEMACTIVATE pNMItemActivate = reinterpret_cast<LPNMITEMACTIVATE>(pNMHDR);
原文地址:http://www.cnblogs.com/meihao1989/p/3836542.html