Hi,
I would like to raise an event from a custom DateTimePicker when an user clicks the Up or Down button (with the distiction of Up/Down).
I know normally the OnValueChanged event is raised.
In my example I have a custom format (dddd) which only shows the day. So the Up/Down buttons do not work (no value changed is fired).
I override the WndProc and if m.Message == WM_NOTIFY, i cast the LWPARAM to NMHDR. The problem however is that the code of NMHDR is 722, no matter if you press the Up button or the Down button. I would like to make a distinction between the Up and Down button so I know which action to take. Can anyone tell me how I can determine which button is clicked?
T.i.a.,
ratjetoes.
I would like to raise an event from a custom DateTimePicker when an user clicks the Up or Down button (with the distiction of Up/Down).
I know normally the OnValueChanged event is raised.
In my example I have a custom format (dddd) which only shows the day. So the Up/Down buttons do not work (no value changed is fired).
I override the WndProc and if m.Message == WM_NOTIFY, i cast the LWPARAM to NMHDR. The problem however is that the code of NMHDR is 722, no matter if you press the Up button or the Down button. I would like to make a distinction between the Up and Down button so I know which action to take. Can anyone tell me how I can determine which button is clicked?
T.i.a.,
ratjetoes.