🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12635

Re: Running an external application like a modal form

#12635
From: Remy Lebeau (TeamB)
Date: Mon, 24 Nov 2003 19:41
25 lines
1802 bytes
"Damian Vilchis" <damian@ininin.com.mx> wrote in message
news:3fc24ad9$1@newsgroups.borland.com...

> The problem with both aproaches is that not only the paint message
> is processed. If I use ProcessMessages, any message is processed
> and this eliminate the Modal behavior.

If you use Update(), the form will be repainted without processing other
messages.

> Update work a little better, only repaint the form, but the
> messages are enqueued

No, they are not.  TWinControl::Update() calls the Win32 API function
UpdateWindow(), which sends the WM_PAINT message directly to the window
procedure without using the message queue at all.  Thus the form is
repainted immediately.

> tha calling application must be able to paint itself but not anymore.

That is what Update() is for.


Gambit
Technical Details
Message-ID: <3fc25df4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fbea2f3$1@newsgroups.borland.com> <3fbea647$1@newsgroups.borland.com> <3fc24ad9$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,2cd4433069f943cd
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-24 11:40:26 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3fbea2f3$1@newsgroups.borland.com> <3fbea647$1@newsgroups.borland.com> <3fc24ad9$1@newsgroups.borland.com>
Subject: Re: Running an external application like a modal form
Date: Mon, 24 Nov 2003 11:41:21 -0800
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.137.149
Message-ID: <3fc25df4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1069702644 67.22.137.149 (24 Nov 2003 11:37:24 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail