🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Text copying

#10059
From: Remy Lebeau (TeamB)
Date: Mon, 24 May 2004 16:46
14 lines
1330 bytes
"Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> wrote in message
news:40b1e7a3$1@newsgroups.borland.com...

> Try posting a WM_SETTEXT message to the window.
>
> PostMessage(hwnd, WM_SETTEXT, 0, ansi_str.c_str());

If the target window is in another process, then you should be using
SendMessage() instead, otherwise the AnsiString char* pointer may become
invalid before the other process has a chance to use it.


Gambit
Technical Details
Message-ID: <40b227f3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40b19c8b$1@newsgroups.borland.com> <40b1e7a3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,78c8363ac2992bfe
X-Google-Attributes: gid10cc67,public
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40b19c8b$1@newsgroups.borland.com> <40b1e7a3$1@newsgroups.borland.com>
Subject: Re: Text copying
Date: Mon, 24 May 2004 09:46:11 -0700
Lines: 16
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.135.163
Message-ID: <40b227f3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1085417459 67.22.135.163 (24 May 2004 09:50:59 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail