Article View: borland.public.cppbuilder.nativeapi
Article #9929Re: control handle
From: Remy Lebeau (TeamB)
Date: Mon, 07 Jun 2004 16:51
Date: Mon, 07 Jun 2004 16:51
19 lines
1717 bytes
1717 bytes
"Gintaras Kekys" <gintaras-erasethis@sb.lt> wrote in message news:40c46c4b$1@newsgroups.borland.com... > I need to somehow distinguish controls from each > other to be able to send messages to particular one. Typically, that is what control IDs are for. Each control would have a unique ID assigned to it, so you can then use GetDlgItem() to find the HWND of a particular control without having to hunt for it manually. Or use SendDlgItemMessage(), then you don't need the control's HWND at all, just its ID and its parent window's HWND (which presumably you already have). With that said, however - it will only work with non-Borland applications. VCL controls do not use control IDs at all, thus GetDlgItem() and SendDlgItemMessage() will not work on VCL-based applications. Gambit
Technical Details
Message-ID:
<40c49e08$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40c46c4b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,cf6c3cf1a47a1f79 X-Google-Attributes: gid10cc67,public From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40c46c4b$1@newsgroups.borland.com> Subject: Re: control handle Date: Mon, 7 Jun 2004 09:51:25 -0700 Lines: 21 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: 68.169.168.124 Message-ID: <40c49e08$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1086627336 68.169.168.124 (7 Jun 2004 09:55:36 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail