Article View: borland.public.cppbuilder.nativeapi
Article #12845Changing Title Bar icon
From: Peter Rees
Date: Sun, 16 Nov 2003 20:46
Date: Sun, 16 Nov 2003 20:46
20 lines
1262 bytes
1262 bytes
I want to change the icon associated with an application at runtime. I can
change the taskbar icon with;
hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(icon));
dwResult = SetClassLong(hWnd, GCL_HICON, (LONG)hIcon) ;
if (dwResult)
etc..
but the little incon on the title bar does not change
I tried
dwResult = SetClassLong(hWnd, GCL_HICONSM, (LONG)hIconSM) ;
but no luck
Can anyone help with this?
Thanks
Peter
Technical Details
Message-ID:
<3fb7e214$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-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,7713528a7c4d2220,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-16 13:09:18 PST From: "Peter Rees" <peter@NOOSPAMMrees.co.nz> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Changing Title Bar icon Date: Mon, 17 Nov 2003 09:46:36 +1300 Lines: 22 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: 219.88.101.36 Message-ID: <3fb7e214$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1069015572 219.88.101.36 (16 Nov 2003 12:46:12 -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