Article View: borland.public.cppbuilder.nativeapi
Article #16113Re: text size?
From: user
Date: Fri, 30 May 2003 23:03
Date: Fri, 30 May 2003 23:03
18 lines
1684 bytes
1684 bytes
Robert Hoover wrote: > I'm trying to get the size of the font used in the menu from windows. So > far, I've found GetSystemMetrics(SM_CYMENU) which gives me the height in > pixels of the menubar. How can I get hold of the fontsize? > > Thanks, > Rob > > Call SystemParametersInfo() with the SPI_GETNONCLIENTMETRICS action. This fills a NONCLIENTMETRICS structure, one of whose members is lfMenuFont, a LOGFONT containing information about the font used in menu bars. As a rule, anything you set with the Desktop Properties dialog can be set or queried with this function. The trick is figuring out which action to use.
Technical Details
Message-ID:
<3ED7E339.1050508@domain.invalid>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ed78602$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,4bf981bc20385a7d X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-30 16:34:47 PST Message-ID: <3ED7E339.1050508@domain.invalid> Date: Fri, 30 May 2003 19:03:21 -0400 From: user@domain.invalid User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: text size? References: <3ed78602$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 68.162.138.29 X-Trace: newsgroups.borland.com 1054335816 68.162.138.29 (30 May 2003 16:03:36 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!small1.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