🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: What is the legend on a button

#10467
From: Bob Gonder
Date: Fri, 09 Apr 2004 19:41
27 lines
1900 bytes
Feico wrote:

>For example, a program displays a MessageBox with the text "Click Yes if you want to ...". 
>This seems fine, but the MessageBox is generated by Windows, and it could be that it is not an
>English version of Windows. The legend on the button could be "Ja" "Oui" "Si" or anything else
>
>A well designed program inquires for the legends on the buttons:
>
>sprintf (msg, "Click %s if you want to...", GetLegend("Yes"));
>MessageBox(msg .....
>
>Is there a function like GetLegend?

I don't know if this works, but you might try
char	ButtonText[128];
SendDlgItemMessage(hDlg,IDYES,WM_GETTEXT,128,(LPARAM)(LPCSTR)ButtonText);

Others...
IDABORT	Abort button was selected.
IDCANCEL	Cancel button was selected.
IDIGNORE	Ignore button was selected.
IDNO	No button was selected.
IDOK	OK button was selected.
IDRETRY	Retry button was selected.
IDYES	Yes button was selected.

 
Technical Details
Message-ID: <kdud7091nop5o6ijhom8rn3p9ifqnpj7mj@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <vjnd70p1q8iprtg68oume53pcq70qqto6q@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,4e420b252a1cefa7
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-04-09 13:04:59 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: What is the legend on a button
Date: Fri, 09 Apr 2004 12:41:29 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <kdud7091nop5o6ijhom8rn3p9ifqnpj7mj@4ax.com>
References: <vjnd70p1q8iprtg68oume53pcq70qqto6q@4ax.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 4.228.225.117
X-Trace: newsgroups.borland.com 1081539688 4.228.225.117 (9 Apr 2004 12:41:28 -0800)
Lines: 27
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail