Article View: borland.public.delphi.language.objectpascal
Article #93Re: Loading Stock Bitmaps
From: Constantine Yannakopoulos
Date: Mon, 26 Jan 2004 08:28
Date: Mon, 26 Jan 2004 08:28
18 lines
1572 bytes
1572 bytes
Author := "David"; | I am trying to load one of the Stock bitmaps - the close 'X' in the | top left corner of a window - into a bitmap. I have found some | examples of how to do it for VB but can't get it to work on Delphi. | VB uses the LoadBitmapBynum API call but the few clues I have found | in Delphi indicate that the .LoadFromResourceID method is the way to | go. But I can't get either way to work. Does anyone have any pointers | to what I should be doing? You could use DrawFrameControl(DC, Rect, DFC_CAPTION, DFCS_CAPTIONCLOSE) to paint a close button (with its border) on an arbitrary DC. You can combine with "or" DFCS_CAPTIONCLOSE with one or more of the state DFCS_flags (DFCS_PUSHED, DFCS_FLAT etc.) to change the state it will be painted in. -- Constantine
Technical Details
Message-ID:
<4014ddcf@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4013b559$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109d30,565e38e074acddf5 X-Google-Attributes: gid109d30,public X-Google-ArrivalTime: 2004-01-26 01:40:05 PST From: "Constantine Yannakopoulos" <kyan@deltasingular.remove.this.gr> Subject: Re: Loading Stock Bitmaps Newsgroups: borland.public.delphi.language.objectpascal References: <4013b559$1@newsgroups.borland.com> User-Agent: XanaNews/1.16.1.3 NNTP-Posting-Host: 62.1.187.233 Message-ID: <4014ddcf@newsgroups.borland.com> Date: 26 Jan 2004 01:28:47 -0700 X-Trace: newsgroups.borland.com 1075109327 62.1.187.233 (26 Jan 2004 01:28:47 -0700) Lines: 18 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail