🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Changing Title Bar icon

#12848
From: Remy Lebeau (TeamB)
Date: Sun, 16 Nov 2003 21:16
16 lines
1379 bytes
"Peter Rees" <peter@NOOSPAMMrees.co.nz> wrote in message
news:3fb7e214$1@newsgroups.borland.com...

> Can anyone help with this?

The global TApplication object has an Icon property that you can use for
that.  If you don't want to use the VCL, then you only have half of the
equation.  You shoudl send a WM_SETICON message prior to calling
SetWindowLong().

    SendMessage(hWnd, WM_SETICON, ICON_SMALL, (LPARAM)hIcon);
    SetClassLong(hWnd, GCL_HICON, (LPARAM)hIcon);


Gambit
Technical Details
Message-ID: <3fb7e838$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fb7e214$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,7713528a7c4d2220
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-16 13:39:18 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3fb7e214$1@newsgroups.borland.com>
Subject: Re: Changing Title Bar icon
Date: Sun, 16 Nov 2003 13:16:06 -0800
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.137.149
Message-ID: <3fb7e838$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1069017144 67.22.137.149 (16 Nov 2003 13:12:24 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail