🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: A Window's Caption

#9848
From: Martin Golm
Date: Fri, 11 Jun 2004 08:25
24 lines
1377 bytes
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
}


Martin
Technical Details
Message-ID: <40C96C8F.7E4C80F5@gmx.de>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40c943f6$1@newsgroups.borland.com> <40c95e3d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,71cb09f077662189
X-Google-Attributes: gid10cc67,public
Message-ID: <40C96C8F.7E4C80F5@gmx.de>
Date: Fri, 11 Jun 2004 10:25:51 +0200
From: Martin Golm <golm@gmx.de>
X-Mailer: Mozilla 4.78 [de] (WinNT; U)
X-Accept-Language: de
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: A Window's Caption
References: <40c943f6$1@newsgroups.borland.com> <40c95e3d@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 217.225.246.112
X-Trace: newsgroups.borland.com 1086942290 217.225.246.112 (11 Jun 2004 01:24:50 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail