- Problem with editbox created into listview
- Posted by on May 24th, 2004
I create a editbox into listview for change the text of subitems !
Now ,the problem is , if i set the parent of createwindowex ,for create the
editbox, to HWND of listview , i don't understud like retirve the
EN_KILLFOCUS of the editbox ! Can someone help me ?
This is the code for the editbox create
hWndEditFileName =
CreateWindowEx(WS_EX_CLIENTEDGE|WS_EX_NOPARENTNOTI FY,"edit",NULL,WS_CHILD|WS
_VISIBLE|ES_AUTOHSCROLL
,lpRect.left/*+170*/,lpRect.top/*+110*/,lpRect.right-lpRect.left,lpRect.bott
om-lpRect.top,hWndListView1,(HMENU)IDC_EDITFILENAME,N ULL,NULL);
- Posted by Tim Robinson on May 24th, 2004
snowball@email.it wrote:
Set the parent of the edit control to the same as the parent of the list
view, i.e. your window. This will cause the edit control to send its
WM_COMMAND messages to your window instead of the list view. Apply the
WS_CLIPSIBLINGS style to the list view to prevent redraw problems.
--
Tim Robinson (MVP, Windows SDK)
http://mobius.sourceforge.net/
- Posted by on May 24th, 2004
"Tim Robinson" <tim.at.gaat.freeserve.co.uk@invalid.com> ha scritto nel
messaggio news:2hf392FbrnclU1@uni-berlin.de...
mouse !!
- Posted by Tim Robinson on May 24th, 2004
snowball@email.it wrote:
Make sure the z-order is right -- use SetWindowPos to control this.
--
Tim Robinson (MVP, Windows SDK)
http://mobius.sourceforge.net/
- Posted by on May 25th, 2004
"Tim Robinson" <tim.at.gaat.freeserve.co.uk@invalid.com> ha scritto nel
messaggio news:2hf773Fcgoc4U1@uni-berlin.de...
SetWindowPos( hWnd, HWND_TOPMOST, 0, 0, 0, 0,SWP_NOMOVE | SWP_NOSIZE |
SWP_SHOWWINDOW );
but nothing changed !!!
The listview take the mouse input !