WM_NOTIFY hook works but notification codes are wrong

L

Liran Shahar

i wrote datetimepicker control (using pinvoke and a lot of newsgroups info
gathering) and it works fine, i also managed to hook into the WNDPROC (thanks
for alex and opennetcf!) since i wanted to respond to events, i get the
WM_NOTIFY at the right situations but the notification codes inside the NMHDR
strcuture do not match the documentation, i am refering to DTN_DATECHANGE(-759)
and DTN_DROPDOWN (-754), what can be the cause for this? how can i find out the
messages numbers?

and also which hwnd i should hook? current i hook the datetimepicker handle and
it works (beside the bad codes), but i read somewhere that i should hook the
parent of the control for the WM_NOTIFY message), please advise....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top