Article View: borland.public.cppbuilder.nativeapi
Article #9851Re: A Window's Caption
From: JD
Date: Fri, 11 Jun 2004 11:57
Date: Fri, 11 Jun 2004 11:57
33 lines
1642 bytes
1642 bytes
Martin Golm <golm@gmx.de> wrote:
>Steve Aletto schrieb:
>>
>> > Given the Handle of a window, how can I change it's caption?
>>
>> BOOL SetWindowText(
>> HWND hWnd, // handle to window or control
>> LPCTSTR lpString // title or text
>> );
>>
>> Steve.
>
>JD,
>
>this even works for your SHBrowseForFolder dialog :)
>
>
>if( uMsg == BFFM_INITIALIZED )
>{
> SetWindowText(hwnd, "my new Browse for folder caption");
> // your code for centering the dialog
>}
>
LOL - Yes Martin, that's what I wanted it for. Since I didn't
get a response to that post I thought that I should simplify
the question!!
Thanks Steve. I looked and looked in the win32 help but it
never occured to me to look for 'Set' or 'Text' - Da.
~ JD
Technical Details
Message-ID:
<40c99e2f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<40c943f6$1@newsgroups.borland.com> <40c95e3d@newsgroups.borland.com> <40C96C8F.7E4C80F5@gmx.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,71cb09f077662189 X-Google-Attributes: gid10cc67,public From: "JD" <nospam@nospam.com> Sender: "JD" <nospam@nospam.com> Reply-To: "JD" <nospam@nospam.com> Subject: Re: A Window's Caption Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 172.139.111.63 References: <40c943f6$1@newsgroups.borland.com> <40c95e3d@newsgroups.borland.com> <40C96C8F.7E4C80F5@gmx.de> NNTP-Posting-Host: 207.105.83.66 Message-ID: <40c99e2f$1@newsgroups.borland.com> Date: 11 Jun 2004 04:57:35 -0700 X-Trace: newsgroups.borland.com 1086955055 207.105.83.66 (11 Jun 2004 04:57:35 -0700) Lines: 34 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail