Article View: borland.public.cppbuilder.nativeapi
Article #2431Re: Getting text from an external Grid
From: Remy Lebeau (TeamB)
Date: Fri, 02 Mar 2007 20:00
Date: Fri, 02 Mar 2007 20:00
27 lines
2272 bytes
2272 bytes
"Dan" <Dan@do.not.spam> wrote in message news:45e87917$1@newsgroups.borland.com... > When I send this message, I can get a FileSave Dialog to appear, but > the dialog appears to be modal, in so much that after I send the above > message, control doesn't resume to the next line in my code until the > dialog is closed. That is because the dialog is displayed in the context of the message handler. SendMessage() can't return until the message handler exits. Try using PostMessage() instead of SendMessage() if you need your code to continue immediately. > Can I get around that by placing the SendMessage in another thread? Yes. > Is there a way to get around this? You could alternatively use SendMessageTimeout() instead of SendMessage(). Gambit
Technical Details
Message-ID:
<45e88290$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45e59a3a$1@newsgroups.borland.com> <45e5bb7e$1@newsgroups.borland.com> <45e5cfa5$1@newsgroups.borland.com> <45e5f6d3@newsgroups.borland.com> <45e5fd07$1@newsgroups.borland.com> <45e60f88$1@newsgroups.borland.com> <45e6f2f0$1@newsgroups.borland.com> <lnvdu29ua6a88fpbfof4eu9pb4d7t42pm4@4ax.com> <45e72444$1@newsgroups.borland.com> <45e733b3$1@newsgroups.borland.com> <45e73ae4@newsgroups.borland.com> <45e7425f$1@newsgroups.borland.com> <45e75113$1@newsgroups.borland.com> <45e75811$1@newsgroups.borland.com> <45e83813$1@newsgroups.borland.com> <45e864bf$1@newsgroups.borland.com> <45e87917$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3d58209a1f02789a X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <45e59a3a$1@newsgroups.borland.com> <45e5bb7e$1@newsgroups.borland.com> <45e5cfa5$1@newsgroups.borland.com> <45e5f6d3@newsgroups.borland.com> <45e5fd07$1@newsgroups.borland.com> <45e60f88$1@newsgroups.borland.com> <45e6f2f0$1@newsgroups.borland.com> <lnvdu29ua6a88fpbfof4eu9pb4d7t42pm4@4ax.com> <45e72444$1@newsgroups.borland.com> <45e733b3$1@newsgroups.borland.com> <45e73ae4@newsgroups.borland.com> <45e7425f$1@newsgroups.borland.com> <45e75113$1@newsgroups.borland.com> <45e75811$1@newsgroups.borland.com> <45e83813$1@newsgroups.borland.com> <45e864bf$1@newsgroups.borland.com> <45e87917$1@newsgroups.borland.com> Subject: Re: Getting text from an external Grid Date: Fri, 2 Mar 2007 12:00:44 -0800 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.83.34.171 Message-ID: <45e88290$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1172865680 75.83.34.171 (2 Mar 2007 12:01:20 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail