CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2005
    Posts
    336

    Add a CEditView into view (runtime error)

    Hi

    I just tried to add view new views into another view if possible.

    OnInitialUpdate:
    Code:
     CRect clientRect;
     GetClientRect(&clientRect);
     clientRect.SetRect(clientRect.right -110, clientRect.top+10, clientRect.right-10, clientRect.top +110);
    	m_View.Create(NULL, L"View", WS_CHILDWINDOW |  WS_VISIBLE, clientRect,this,61245);
    	m_View.ShowWindow(SW_SHOW)
    It shows a Edit View which is embedded to view but when i close it gives run-time error. Why is that runtime error occur?

    Thanks..

  2. #2
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Add a CEditView into view (runtime error)

    Which error do you get?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured