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
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