Click to See Complete Forum and Search --> : Child form without main form flickering


eric33
August 17th, 2001, 02:29 AM
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

sotoasty
August 17th, 2001, 07:09 AM
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