The LVM_GETEDITCONTROL message retrieves the handle to the edit control being used to edit a list view itemís text. You can send this message explicitly or by using the ListView_GetEditControl macro.
LVM_GETEDITCONTROL wParam = 0; lParam = 0;
Returns the handle to the edit control if successful or NULL otherwise.
If no label is being edited, the return value is NULL. The edit control is not created until after the LVN_BEGINLABELEDIT notification message is sent.
When the user completes or cancels editing, the edit control is destroyed and the handle is no longer valid. You can safely subclass the edit control, but you should not destroy it. To cancel editing, you can send the list view control a WM_CANCELMODE message.
The list view item being edited is the currently focused item ¾ that is, the item in the focused state. To find an item based on its state, use the LVM_GETNEXTITEM message.
ListView_GetEditControl, LVN_BEGINLABELEDIT, LVM_GETNEXTITEM, WM_CANCELMODE
|file: /Techref/os/win/api/win32/mess/src/msg12_1.htm, 1KB, , updated: 2000/4/7 12:20, local time: 2022/5/21 21:35,
|©2022 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.piclist.com/techref/os/win/api/win32/mess/src/msg12_1.htm"> LVM_GETEDITCONTROL</A>
|Did you find what you needed?|
PICList 2022 contributors:
o List host: MIT, Site host massmind.org, Top posters @20220521
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!