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

    Child form without main form flickering

    I want to show a form as a child of another form (NOT A MDI APP).

    I use the SetParent. It works well but the main form title bar flickers because the time i load the form and the call of SetParent the mainform lost the focus and the color of the title bar changes and makes some flicker effect.

    Could you help ?
    thanks




  2. #2
    Join Date
    Sep 2000
    Location
    FL
    Posts
    1,452

    Re: Child form without main form flickering

    Have you tried loading the form first then doing the Setparent like...

    Load frmMyChildForm
    retval = SetParent(frmMyChildForm.hwnd, frmMyMainForm.hwnd)
    frmMyChildForm.Show



    That way your main form should not lose focus.

    HTH


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