Article View: borland.public.cppbuilder.nativeapi
Article #78Re: MDI form flicker when maximized
From: Carlos
Date: Fri, 20 Jun 2008 11:59
Date: Fri, 20 Jun 2008 11:59
56 lines
2676 bytes
2676 bytes
Thank you.
It works for me!!
Regards
"Mike Collins" <its@TheBottomOfThePost> escribi๏ฟฝ en el mensaje de noticias
news:485a5867$1@newsgroups.borland.com...
> Hay Carlos,
>
> There was a well know bug in the (AFAIK) MS implementation of the MDI
> Window which caused this problem i.e. even if you set your child form to
> maximise, it was painted normal and then visually maximised (which looked
> crap).
>
> The old hack to resolve this was to use the LockWindowUpdate() i.e.
>
> LockWindowUpdate(ClientHandle);
> try
> {
> if (!MDIChildFrm)
> MDIChildFrm= new TMDIChildFrm(MainForm);
>
> MDIChildFrm->WindowState = wsMaximized;
> MDIChildFrm->Show();
> MDIChildFrm->BringToFront();
> }
> __finally
> {
> LockWindowUpdate(NULL);
> }
>
> However, in XP and Vista this still doesn't resolve the painting issue.
> (Bit of a pointless post on my behalf :-) )
>
> Mike
>
>
> "Carlos" <a@a.com> wrote in message
> news:4858a2ef$1@newsgroups.borland.com...
>> Hello,
>>
>> When I have various MDI childs form maximized, and I click for create new
>> child form windows are flicker.
>>
>> Other question is, in windows vista, when MDI is maximized the right
>> border are wrong painted...
>>
>> Where is the best location for invoke a showmessage function, when I
>> create a new form, and I needs set to Maximized:
>> - OnShow (works but maximization is wrong)
>> -
>>
>> Regards
>
>
Technical Details
Message-ID:
<485b9bb6@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!npeer01.iad!news.highwinds-media.com!newsfeed2.telusplanet.net!newsfeed.telus.net!xmission!ucberkeley!news-hog.berkeley.edu!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4858a2ef$1@newsgroups.borland.com> <485a5867$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,5df76efea47eb233 X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII From: "Carlos" <not@found.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4858a2ef$1@newsgroups.borland.com> <485a5867$1@newsgroups.borland.com> In-Reply-To: <485a5867$1@newsgroups.borland.com> Subject: Re: MDI form flicker when maximized Date: Fri, 20 Jun 2008 13:59:48 +0200 Lines: 57 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6000.16480 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545 NNTP-Posting-Host: 88.25.204.62 Message-ID: <485b9bb6@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1213963190 88.25.204.62 (20 Jun 2008 04:59:50 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!npeer01.iad!news.highwinds-media.com!newsfeed2.telusplanet.net!newsfeed.telus.net!xmission!ucberkeley!news-hog.berkeley.edu!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail