Strange edit control problem
-
Hi everyone, I'm creating an edit box as child window of a list view ctrl to edit a subitem's text. When the edit box is created, it is invisible, although it has the WS_VISIBLE style set... I have to press some key to change the text of the edit box to make it visible. What is wrong? Regards, Alex Don't try it, just do it! ;-)
-
Hi everyone, I'm creating an edit box as child window of a list view ctrl to edit a subitem's text. When the edit box is created, it is invisible, although it has the WS_VISIBLE style set... I have to press some key to change the text of the edit box to make it visible. What is wrong? Regards, Alex Don't try it, just do it! ;-)
-
Add the WS_BORDER style, debug the CreateWindow function, if no error succed, and the problem persist, try using ShowWindow function.
I did, but that didn't change anything :( CreateWindow does succeed, but the control is still hidden until I press a button to change it's text. Don't try it, just do it! ;-)
-
I did, but that didn't change anything :( CreateWindow does succeed, but the control is still hidden until I press a button to change it's text. Don't try it, just do it! ;-)
Hi, Try the SetWindowPos() function,and set its position on top of your listbox:
YourEditBox.SetWindowPos(&CWnd::wndBottom, 0, 0, 0, 0,
SWP_NOMOVE|SWP_NOSIZE);Regards, Eli