🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Length of text in MessageBox function

#4050
From: Remy Lebeau (TeamB)
Date: Thu, 23 Mar 2006 21:57
24 lines
1695 bytes
"Richard Casten" <richard.casten@aero.org> wrote in message
news:4422FA56.83B7F39@aero.org...

> How would I know what is the specific HWND of the text field?

Use an external window viewer, such as Spy++ or WinSight, to view the class
name for any HWND.  For example, Spy++ shows the following on my machine for
the following code:

    ::MessageBox(NULL, "Test", "Testing", MB_OK);

    00000844 "Testing" #32770 (Dialog)
    |
    --- 00000E54 "OK" Button
    |
    --- 00000A58 "Test" Static

The numbers are the memory addresses stored in the HWND handles.  The
message box window has two child windows, one for the button and one for the
text.  The class name of the text window is "Static".


Gambit
Technical Details
Message-ID: <442319ab@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.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
References: <4422D533.32E31292@aero.org> <4422ea15$1@newsgroups.borland.com> <4422FA56.83B7F39@aero.org>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b8d4aea1a094904b
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: <4422D533.32E31292@aero.org> <4422ea15$1@newsgroups.borland.com> <4422FA56.83B7F39@aero.org>
Subject: Re: Length of text in MessageBox function
Date: Thu, 23 Mar 2006 13:57:31 -0800
Lines: 26
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.69.17.41
Message-ID: <442319ab@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1143151019 68.69.17.41 (23 Mar 2006 13:56:59 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.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