Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LVN_BEGINLABELEDIT - PostMessage 1

Status
Not open for further replies.

williegofar

Programmer
Feb 3, 2003
11
GB
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.
 
LVN_BEGINLABELEDIT is being send from the listview to its parent to notify that label editing is about to start. It is NOT a message the listview will respond to.

If you want to have the listview start label editing you should send it the LVM_EDITLABEL message.
Greetings,
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top