🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

WM_DRAWITEM

#16667
From: JD
Date: Mon, 05 May 2003 02:25
24 lines
1724 bytes
I've altered the forms default system menu using Win32 API calls
and I've subclassed the forms WindowProc so that I can draw my
additions to the menu.

I found that I had to draw the additions to the menu myself
because one of the items is a 'caption' that I want in bold and
I do not want it selected on MouseOver and the other item which
is also in bold has a short-cut.

In all, there are 3 items that I want displayed as bold text. Is
there anyway to do this without drawing the item myself?

Also, is there a way to associate a short-cut string with an item
so that I don't have to draw it myself?

Lastly, I'd like to have a common draw function but I can't
figure out how to locate the the string for the item. At the
moment I'm brute-forcing it by checking the DRAWITEMSTRUCT
itemData value and drawing a literal.

Any help on any of the issues is appreciated.

~ JD
Technical Details
Message-ID: <3eb5cb82$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,626cdd602756384,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-04 19:26:44 PST
From: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: WM_DRAWITEM
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 172.135.44.117 172.135.44.117    
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3eb5cb82$1@newsgroups.borland.com>
Date: 4 May 2003 19:25:06 -0700
X-Trace: newsgroups.borland.com 1052101506 207.105.83.65 (4 May 2003 19:25:06 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail