OK... I did more study on that and I could locate the problem. The code was like this... HWND hWndEdit = CreateWindow( _T( "EDIT" ), _T( "" ), WS_POPUP | WS_VISIBLE, 0, 0, 100, 50, hWnd, (HMENU)1001, hInstance, 0 ); And the problem was with control ID given. For top level window it should be null or a valid menu handle. Let me say what I was trying for. I need to show an edit control inside a list control (similar to label edit), but its width can be more than list control's client area. So I tried to use a popup edit control. Any idea to implement the same?
- NS -