williegofar
Programmer
Hi,
I have a dialog app that contains a list control.
I want to be able to press F2 to edit a list control entry.
My code is ready to handle the F2 key press and ready to handle LVN_BEGINLABELEDIT & LVN_ENDLABELEDIT (I know because I stumbled onto the fact that holding down the left mouse button and clicking the right button triggers a LVN_BEGINLABELEDIT event!).
What I can't do is trigger a LVN_BEGINLABELEDIT event from OnKeydown... I've tried PostMessage but without success.
Any ideas?
Thanks.
I have a dialog app that contains a list control.
I want to be able to press F2 to edit a list control entry.
My code is ready to handle the F2 key press and ready to handle LVN_BEGINLABELEDIT & LVN_ENDLABELEDIT (I know because I stumbled onto the fact that holding down the left mouse button and clicking the right button triggers a LVN_BEGINLABELEDIT event!).
What I can't do is trigger a LVN_BEGINLABELEDIT event from OnKeydown... I've tried PostMessage but without success.
Any ideas?
Thanks.