🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

custom check mark

#16249
From: Michel Corbin
Date: Fri, 23 May 2003 12:20
20 lines
1740 bytes
Hi,

I'm trying to add small bitmaps to the MainMenu of an application
using SetMenuItemBitmaps( ... ); I use StretchDraw (or CopyRect)
to adapt the dimensions of the bitmaps to X and Y given by 
X=GetSystemMetrics(SM_CXMENUCHECK) and
Y=GetSystemMetrics(SM_CYMENUCHECK)
I have two problems :
1) Some colors of the bitmaps disappear, I get the background color of
the menu instead e.g. the white sheet in front of the New menu isn't
white,
I can only see the edge of the sheet. (the left bottom pixel is not
white)
2) I can't achieve to display a bitmap on the menus that come from the
merging MainMenu of MDI-children Forms (e.g. Cut, Copy, Paste).
SetMenuItemBitmaps(...) returns true, which means success but success
is not here.

Any idea? Am I doing something wrong?
michel
Technical Details
Message-ID: <3ECE122A.64C4F93C@libertysurf.fr>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,b2c4ba7ec349d33a,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-23 06:00:49 PST
Message-ID: <3ECE122A.64C4F93C@libertysurf.fr>
Date: Fri, 23 May 2003 14:20:58 +0200
From: Michel Corbin <corbin.michel@libertysurf.fr>
X-Mailer: Mozilla 4.7 [fr] (Win95; U)
X-Accept-Language: fr,en,es-ES,it,de-DE,pt
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: custom check mark
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 212.47.231.208
X-Trace: newsgroups.borland.com 1053692513 212.47.231.208 (23 May 2003 05:21:53 -0700)
Lines: 21
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail