Article View: borland.public.cppbuilder.nativeapi
Article #3315Re: focus on a EditBox
From: Alan Bellingham
Date: Thu, 20 Jul 2006 11:25
Date: Thu, 20 Jul 2006 11:25
15 lines
1351 bytes
1351 bytes
"Renan" <gulbrrs@gmail.com> wrote:
>How do I set focus on a EditBox? (for example: I press F2 and the focus is in Edit1.)
HWND SetFocus(
HWND hWnd // handle to window to receive focus
);
So just hand this the window handle for the edit box you want to receive
focus. The return value is the handle of the previous window that had
focus.
Alan Bellingham
--
ACCU Conference: 11-14 April 2007 - Paramount Oxford Hotel
Technical Details
Message-ID:
<utpub2lik4ljjq25rppbe3mpmk4273smv4@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44bf614b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1f95c4d713244deb X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Alan Bellingham <alan@lspace.org> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: focus on a EditBox Date: Thu, 20 Jul 2006 12:25:15 +0100 Organization: Private Reply-To: alan@lspace.org Message-ID: <utpub2lik4ljjq25rppbe3mpmk4273smv4@4ax.com> References: <44bf614b$1@newsgroups.borland.com> X-Newsreader: Forte Agent 3.3/32.846 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 193.129.251.253 X-Trace: newsgroups.borland.com 1153394713 193.129.251.253 (20 Jul 2006 04:25:13 -0700) Lines: 15 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail