|
-
August 17th, 2001, 02:29 AM
#1
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
-
August 17th, 2001, 07:09 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|